mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix settings window is minimized when re-opened. (#4341)
* Fix settings window is minimized when re-opened * Don't save minimized state
This commit is contained in:
parent
a406eb83e1
commit
8d042d2134
1 changed files with 4 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ public partial class SettingWindow
|
||||||
private void Window_StateChanged(object sender, EventArgs e)
|
private void Window_StateChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
RefreshMaximizeRestoreButton();
|
RefreshMaximizeRestoreButton();
|
||||||
if (IsLoaded)
|
if (IsLoaded && WindowState != WindowState.Minimized)
|
||||||
{
|
{
|
||||||
_settings.SettingWindowState = WindowState;
|
_settings.SettingWindowState = WindowState;
|
||||||
}
|
}
|
||||||
|
|
@ -169,7 +169,9 @@ public partial class SettingWindow
|
||||||
SetWindowPosition(top, left);
|
SetWindowPosition(top, left);
|
||||||
}
|
}
|
||||||
|
|
||||||
WindowState = _settings.SettingWindowState;
|
WindowState = _settings.SettingWindowState == WindowState.Minimized
|
||||||
|
? WindowState.Normal
|
||||||
|
: _settings.SettingWindowState;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetWindowPosition(double top, double left)
|
private void SetWindowPosition(double top, double left)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue