Add WindowState Setting

This commit is contained in:
DB p 2022-11-12 18:46:48 +09:00
parent 9ac5d42688
commit 24dba2cbca
2 changed files with 4 additions and 0 deletions

View file

@ -53,6 +53,8 @@ namespace Flow.Launcher.Infrastructure.UserSettings
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;
[JsonIgnore]

View file

@ -253,6 +253,7 @@ namespace Flow.Launcher
private void OnClosed(object sender, EventArgs e)
{
settings.SettingWindowState = WindowState;
settings.SettingWindowTop = Top;
settings.SettingWindowLeft = Left;
viewModel.Save();
@ -553,6 +554,7 @@ namespace Flow.Launcher
Top = WindowTop();
Left = WindowLeft();
}
WindowState = settings.SettingWindowState;
}
public double WindowLeft()
{