From aec11ce1a7bd782a44e79e4bf7a71c8a1837e7dc Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 30 Mar 2025 12:20:14 +0800 Subject: [PATCH] Code quality --- Flow.Launcher/MainWindow.xaml.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index a03da8ca2..8a6d4a77e 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -105,9 +105,6 @@ namespace Flow.Launcher private async void OnLoaded(object sender, RoutedEventArgs _) { - // Setup search text box reactiveness - SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay); - // Check first launch if (_settings.FirstLaunch) { @@ -125,6 +122,9 @@ namespace Flow.Launcher welcomeWindow.Show(); } + // Initialize search delay + SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay); + // Initialize place holder SetupPlaceholderText(); _viewModel.PlaceholderText = _settings.PlaceholderText; @@ -167,7 +167,7 @@ namespace Flow.Launcher // Reset preview _viewModel.ResetPreview(); - + // Since the default main window visibility is visible, so we need set focus during startup QueryTextBox.Focus(); @@ -1060,7 +1060,7 @@ namespace Flow.Launcher be.UpdateSource(); } } - + private void QueryTextBox_OnPreviewDragOver(object sender, DragEventArgs e) { e.Handled = true;