mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Defaut Position Logic
This commit is contained in:
parent
ba1d384134
commit
924dd746e6
2 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue