mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #3549 from Flow-Launcher/setting_window_position
initialize position before InitializeComponent
This commit is contained in:
commit
bb25c53f08
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();
|
||||
|
||||
// Since WindowStartupLocation is set to Manual, initialize the window position before calling InitializeComponent
|
||||
UpdatePositionAndState();
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue