From 15255ddf147feca7eaf361be09cd115e2dd52f29 Mon Sep 17 00:00:00 2001 From: DB p Date: Wed, 29 May 2024 17:40:56 +0900 Subject: [PATCH] Fix Logic --- Flow.Launcher.Infrastructure/UserSettings/Settings.cs | 1 + Flow.Launcher/SettingWindow.xaml.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 {