Code quality

This commit is contained in:
Jack251970 2025-03-30 12:20:14 +08:00
parent 1f6ab1c9de
commit aec11ce1a7

View file

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