fix move cursor to the end when it is not called from main thread

This commit is contained in:
Hongtao Zhang 2021-12-31 14:40:08 -06:00
parent 701a5d444b
commit b0a86ce4a5

View file

@ -503,7 +503,7 @@ namespace Flow.Launcher
private void MoveQueryTextToEnd() private void MoveQueryTextToEnd()
{ {
QueryTextBox.CaretIndex = QueryTextBox.Text.Length; Dispatcher.Invoke(() => QueryTextBox.CaretIndex = QueryTextBox.Text.Length);
} }
public void InitializeColorScheme() public void InitializeColorScheme()