Skip to content

Commit e98b144

Browse files
committed
Improve code quality
1 parent dc3f663 commit e98b144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public MainWindow(Settings settings, MainViewModel mainVM)
6868
var handle = new WindowInteropHelper(this).Handle;
6969
var win = HwndSource.FromHwnd(handle);
7070
win.AddHook(WndProc);
71-
SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay);
7271
};
7372
}
7473

@@ -196,6 +195,8 @@ private void OnLoaded(object sender, RoutedEventArgs _)
196195
InitializePosition();
197196
InitializePosition();
198197
PreviewReset();
198+
// Setup search text box reactiveness
199+
SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay);
199200
// since the default main window visibility is visible
200201
// so we need set focus during startup
201202
QueryTextBox.Focus();

0 commit comments

Comments
 (0)