Fix Logic

This commit is contained in:
DB p 2024-05-29 17:40:56 +09:00
parent 3ae438aba2
commit 15255ddf14
2 changed files with 3 additions and 1 deletions

View file

@ -88,6 +88,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
public double SettingWindowWidth { get; set; } = 1000; public double SettingWindowWidth { get; set; } = 1000;
public double SettingWindowHeight { get; set; } = 700; public double SettingWindowHeight { get; set; } = 700;
public bool SettingWindowFirstLaunch { get; set; } = true;
public double SettingWindowTop { get; set; } public double SettingWindowTop { get; set; }
public double SettingWindowLeft { get; set; } public double SettingWindowLeft { get; set; }
public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal; public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal;

View file

@ -110,10 +110,11 @@ public partial class SettingWindow
public void InitializePosition() public void InitializePosition()
{ {
if (_settings.SettingWindowTop == null) if (_settings.SettingWindowFirstLaunch || _settings.SettingWindowFirstLaunch == null)
{ {
Top = WindowTop(); Top = WindowTop();
Left = WindowLeft(); Left = WindowLeft();
_settings.SettingWindowFirstLaunch = false;
} }
else else
{ {