mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Don't save new window width if the window is hidden
This commit is contained in:
parent
52d142cb16
commit
f62561fe53
2 changed files with 6 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
|||
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
|
||||
Name="FlowMainWindow"
|
||||
Title="Flow Launcher"
|
||||
Width="{Binding MainWindowWidth, Mode=OneTime}"
|
||||
Width="{Binding MainWindowWidth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
MinWidth="400"
|
||||
MinHeight="30"
|
||||
d:DataContext="{d:DesignInstance Type=vm:MainViewModel}"
|
||||
|
|
|
|||
|
|
@ -706,7 +706,11 @@ namespace Flow.Launcher.ViewModel
|
|||
public double MainWindowWidth
|
||||
{
|
||||
get => Settings.WindowSize;
|
||||
set => Settings.WindowSize = value;
|
||||
set
|
||||
{
|
||||
if (!MainWindowVisibilityStatus) return;
|
||||
Settings.WindowSize = value;
|
||||
}
|
||||
}
|
||||
|
||||
public double MainWindowHeight
|
||||
|
|
|
|||
Loading…
Reference in a new issue