From abb8c49f19ac98f26868361a0280b6b8716306c3 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Tue, 13 Sep 2022 12:12:33 -0500 Subject: [PATCH] Arrange Setting window constructor property assignment and intialization order. --- Flow.Launcher/SettingWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index fa06b14d1..09c5105b2 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -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(); }