diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 7ead7459f55..33072b53d22 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -52,6 +52,7 @@ public string Language public double SettingWindowHeight { get; set; } = 700; public double SettingWindowTop { get; set; } public double SettingWindowLeft { get; set; } + public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal; public int CustomExplorerIndex { get; set; } = 0; diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index c6bb93b507a..0100c31d1eb 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -253,6 +253,7 @@ private void OnRequestNavigate(object sender, RequestNavigateEventArgs e) private void OnClosed(object sender, EventArgs e) { + settings.SettingWindowState = WindowState; settings.SettingWindowTop = Top; settings.SettingWindowLeft = Left; viewModel.Save(); @@ -553,6 +554,7 @@ public void InitializePosition() Top = WindowTop(); Left = WindowLeft(); } + WindowState = settings.SettingWindowState; } public double WindowLeft() {