mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #2677 from onesounds/240430WindowPosition
Fix SettingWindow's LeftTop Position when first launch
This commit is contained in:
commit
a68b180d68
1 changed files with 6 additions and 6 deletions
|
|
@ -446,16 +446,16 @@ namespace Flow.Launcher
|
|||
|
||||
public void InitializePosition()
|
||||
{
|
||||
if (settings.SettingWindowTop >= 0 && settings.SettingWindowLeft >= 0)
|
||||
{
|
||||
Top = settings.SettingWindowTop;
|
||||
Left = settings.SettingWindowLeft;
|
||||
}
|
||||
else
|
||||
if (settings.SettingWindowTop == null)
|
||||
{
|
||||
Top = WindowTop();
|
||||
Left = WindowLeft();
|
||||
}
|
||||
else
|
||||
{
|
||||
Top = settings.SettingWindowTop;
|
||||
Left = settings.SettingWindowLeft;
|
||||
}
|
||||
WindowState = settings.SettingWindowState;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue