Fix Defaut Position Logic

This commit is contained in:
DB p 2022-10-03 16:12:08 +09:00
parent ba1d384134
commit 924dd746e6
2 changed files with 8 additions and 8 deletions

View file

@ -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;

View file

@ -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()
{