mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add WindowState Setting
This commit is contained in:
parent
9ac5d42688
commit
24dba2cbca
2 changed files with 4 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue