From 3938858e33e4a5689a6919b69aae7420edcf52de Mon Sep 17 00:00:00 2001 From: DB p Date: Tue, 30 Apr 2024 02:23:16 +0900 Subject: [PATCH 1/2] Fix SettingWindow Position when first launch --- Flow.Launcher/SettingWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index 8144c8ff8a3..bad15d2c913 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -446,7 +446,7 @@ private void PluginStore_OnKeyDown(object sender, KeyEventArgs e) public void InitializePosition() { - if (settings.SettingWindowTop >= 0 && settings.SettingWindowLeft >= 0) + if (settings.SettingWindowTop == null) { Top = settings.SettingWindowTop; Left = settings.SettingWindowLeft; From e7abdcef1adec08d9b87e76d6f670497775cd777 Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 20 May 2024 17:46:01 +0900 Subject: [PATCH 2/2] Fix Logic --- Flow.Launcher/SettingWindow.xaml.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index bad15d2c913..1a75a853bef 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -448,13 +448,13 @@ public void InitializePosition() { if (settings.SettingWindowTop == null) { - Top = settings.SettingWindowTop; - Left = settings.SettingWindowLeft; + Top = WindowTop(); + Left = WindowLeft(); } else { - Top = WindowTop(); - Left = WindowLeft(); + Top = settings.SettingWindowTop; + Left = settings.SettingWindowLeft; } WindowState = settings.SettingWindowState; }