Arrange Setting window constructor property assignment and intialization order.

This commit is contained in:
Hongtao Zhang 2022-09-13 12:12:33 -05:00
parent a9a1c21ece
commit abb8c49f19
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -39,10 +39,10 @@ namespace Flow.Launcher
{
settings = viewModel.Settings;
DataContext = viewModel;
InitializeComponent();
InitializePosition();
this.viewModel = viewModel;
API = api;
InitializePosition();
InitializeComponent();
}
#region General
@ -323,7 +323,7 @@ namespace Flow.Launcher
private void OnCloseButtonClick(object sender, RoutedEventArgs e)
{
Close();
}