Skip to content

Commit 15255dd

Browse files
committed
Fix Logic
1 parent 3ae438a commit 15255dd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public string Theme
8888

8989
public double SettingWindowWidth { get; set; } = 1000;
9090
public double SettingWindowHeight { get; set; } = 700;
91+
public bool SettingWindowFirstLaunch { get; set; } = true;
9192
public double SettingWindowTop { get; set; }
9293
public double SettingWindowLeft { get; set; }
9394
public System.Windows.WindowState SettingWindowState { get; set; } = WindowState.Normal;

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@ private void Window_StateChanged(object sender, EventArgs e)
110110

111111
public void InitializePosition()
112112
{
113-
if (_settings.SettingWindowTop == null)
113+
if (_settings.SettingWindowFirstLaunch || _settings.SettingWindowFirstLaunch == null)
114114
{
115115
Top = WindowTop();
116116
Left = WindowLeft();
117+
_settings.SettingWindowFirstLaunch = false;
117118
}
118119
else
119120
{

0 commit comments

Comments
 (0)