Skip to content

Commit 24dba2c

Browse files
committed
Add WindowState Setting
1 parent 9ac5d42 commit 24dba2c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public string Language
5353
public double SettingWindowTop { get; set; }
5454
public double SettingWindowLeft { get; set; }
5555

56+
public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal;
57+
5658
public int CustomExplorerIndex { get; set; } = 0;
5759

5860
[JsonIgnore]

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ private void OnRequestNavigate(object sender, RequestNavigateEventArgs e)
253253

254254
private void OnClosed(object sender, EventArgs e)
255255
{
256+
settings.SettingWindowState = WindowState;
256257
settings.SettingWindowTop = Top;
257258
settings.SettingWindowLeft = Left;
258259
viewModel.Save();
@@ -553,6 +554,7 @@ public void InitializePosition()
553554
Top = WindowTop();
554555
Left = WindowLeft();
555556
}
557+
WindowState = settings.SettingWindowState;
556558
}
557559
public double WindowLeft()
558560
{

0 commit comments

Comments
 (0)