Skip to content

Commit bb25c53

Browse files
authored
Merge pull request #3549 from Flow-Launcher/setting_window_position
initialize position before InitializeComponent
2 parents e80d191 + 07ac325 commit bb25c53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public SettingWindow()
3030
_settings = Ioc.Default.GetRequiredService<Settings>();
3131
_viewModel = Ioc.Default.GetRequiredService<SettingWindowViewModel>();
3232
DataContext = _viewModel;
33-
InitializeComponent();
34-
33+
// Since WindowStartupLocation is set to Manual, initialize the window position before calling InitializeComponent
3534
UpdatePositionAndState();
35+
InitializeComponent();
3636
}
3737

3838
#endregion

0 commit comments

Comments
 (0)