Skip to content

Commit 96f4153

Browse files
committed
Correctly notify windows size change, use window left position for main window
1 parent f62561f commit 96f4153

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
Deactivated="OnDeactivated"
2424
Icon="Images/app.png"
2525
Initialized="OnInitialized"
26+
Left="{Binding Settings.WindowLeft, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
2627
Loaded="OnLoaded"
2728
LocationChanged="OnLocationChanged"
2829
Opacity="{Binding MainWindowOpacity, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ private void IncreaseWidth()
538538
{
539539
Settings.WindowSize += 100;
540540
Settings.WindowLeft -= 50;
541-
OnPropertyChanged();
541+
OnPropertyChanged(nameof(MainWindowWidth));
542542
}
543543

544544
[RelayCommand]
@@ -554,7 +554,7 @@ private void DecreaseWidth()
554554
Settings.WindowSize -= 100;
555555
}
556556

557-
OnPropertyChanged();
557+
OnPropertyChanged(nameof(MainWindowWidth));
558558
}
559559

560560
[RelayCommand]

0 commit comments

Comments
 (0)