Merge pull request #942 from Flow-Launcher/fixCursorMultiThreadIssue

fix move cursor to the end when it is not called from main thread
This commit is contained in:
Jeremy Wu 2022-01-01 12:37:42 +11:00 committed by GitHub
commit 6cabc1609d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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