diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 1b15a31f6..211bc1798 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -45,8 +45,8 @@ namespace Flow.Launcher.Infrastructure.UserSettings public double SettingWindowWidth { get; set; } = 1000; public double SettingWindowHeight { get; set; } = 700; - public double SettingWindowTop { get; set; } = 0; - public double SettingWindowLeft { get; set; } = 0; + public double SettingWindowTop { get; set; } + public double SettingWindowLeft { get; set; } public int CustomExplorerIndex { get; set; } = 0; diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index a69cfcbe2..4ed6d642d 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -357,16 +357,16 @@ namespace Flow.Launcher public void InitializePosition() { - if (settings.SettingWindowTop == 0 && settings.SettingWindowLeft == 0) - { - Top = WindowTop(); - Left = WindowLeft(); - } - else + if (settings.SettingWindowTop >= 0 && settings.SettingWindowLeft >= 0) { Top = settings.SettingWindowTop; Left = settings.SettingWindowLeft; } + else + { + Top = WindowTop(); + Left = WindowLeft(); + } } public double WindowLeft() {