Merge pull request #3549 from Flow-Launcher/setting_window_position

initialize position before InitializeComponent
This commit is contained in:
Jack Ye 2025-05-17 02:18:00 +08:00 committed by GitHub
commit bb25c53f08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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