Improve code quality

This commit is contained in:
Jack251970 2025-03-16 10:33:06 +08:00
parent dc3f663947
commit e98b1441a4

View file

@ -68,7 +68,6 @@ namespace Flow.Launcher
var handle = new WindowInteropHelper(this).Handle;
var win = HwndSource.FromHwnd(handle);
win.AddHook(WndProc);
SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay);
};
}
@ -196,6 +195,8 @@ namespace Flow.Launcher
InitializePosition();
InitializePosition();
PreviewReset();
// Setup search text box reactiveness
SetupSearchTextBoxReactiveness(_settings.SearchQueryResultsWithDelay);
// since the default main window visibility is visible
// so we need set focus during startup
QueryTextBox.Focus();