mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Code quality
This commit is contained in:
parent
1f6ab1c9de
commit
aec11ce1a7
1 changed files with 5 additions and 5 deletions
|
|
@ -105,9 +105,6 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
private async void OnLoaded(object sender, RoutedEventArgs _)
|
private async void OnLoaded(object sender, RoutedEventArgs _)
|
||||||
{
|
{
|
||||||
// Setup search text box reactiveness
|
|
||||||
SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay);
|
|
||||||
|
|
||||||
// Check first launch
|
// Check first launch
|
||||||
if (_settings.FirstLaunch)
|
if (_settings.FirstLaunch)
|
||||||
{
|
{
|
||||||
|
|
@ -125,6 +122,9 @@ namespace Flow.Launcher
|
||||||
welcomeWindow.Show();
|
welcomeWindow.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize search delay
|
||||||
|
SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay);
|
||||||
|
|
||||||
// Initialize place holder
|
// Initialize place holder
|
||||||
SetupPlaceholderText();
|
SetupPlaceholderText();
|
||||||
_viewModel.PlaceholderText = _settings.PlaceholderText;
|
_viewModel.PlaceholderText = _settings.PlaceholderText;
|
||||||
|
|
@ -167,7 +167,7 @@ namespace Flow.Launcher
|
||||||
|
|
||||||
// Reset preview
|
// Reset preview
|
||||||
_viewModel.ResetPreview();
|
_viewModel.ResetPreview();
|
||||||
|
|
||||||
// Since the default main window visibility is visible, so we need set focus during startup
|
// Since the default main window visibility is visible, so we need set focus during startup
|
||||||
QueryTextBox.Focus();
|
QueryTextBox.Focus();
|
||||||
|
|
||||||
|
|
@ -1060,7 +1060,7 @@ namespace Flow.Launcher
|
||||||
be.UpdateSource();
|
be.UpdateSource();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void QueryTextBox_OnPreviewDragOver(object sender, DragEventArgs e)
|
private void QueryTextBox_OnPreviewDragOver(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue