Skip to content

Commit 7e3de02

Browse files
committed
initialize position before InitializeComponent
1 parent e80d191 commit 7e3de02

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+
// Because WindowStartupLocation is Manual, so we need to initialize position before InitializeComponent
3534
UpdatePositionAndState();
35+
InitializeComponent();
3636
}
3737

3838
#endregion

0 commit comments

Comments
 (0)