diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 6528f626c..d3b3c1910 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -88,6 +88,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings public double SettingWindowWidth { get; set; } = 1000; public double SettingWindowHeight { get; set; } = 700; + public bool SettingWindowFirstLaunch { get; set; } = true; public double SettingWindowTop { get; set; } public double SettingWindowLeft { get; set; } public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal; diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index 957379ce4..66bba05cb 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -110,10 +110,11 @@ public partial class SettingWindow public void InitializePosition() { - if (_settings.SettingWindowTop == null) + if (_settings.SettingWindowFirstLaunch || _settings.SettingWindowFirstLaunch == null) { Top = WindowTop(); Left = WindowLeft(); + _settings.SettingWindowFirstLaunch = false; } else {