mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
initialize position before InitializeComponent
This commit is contained in:
parent
e80d191fb8
commit
7e3de02ecb
1 changed files with 2 additions and 2 deletions
|
|
@ -30,9 +30,9 @@ public partial class SettingWindow
|
|||
_settings = Ioc.Default.GetRequiredService<Settings>();
|
||||
_viewModel = Ioc.Default.GetRequiredService<SettingWindowViewModel>();
|
||||
DataContext = _viewModel;
|
||||
InitializeComponent();
|
||||
|
||||
// Because WindowStartupLocation is Manual, so we need to initialize position before InitializeComponent
|
||||
UpdatePositionAndState();
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue