Skip to content

Commit 6cabc16

Browse files
authored
Merge pull request #942 from Flow-Launcher/fixCursorMultiThreadIssue
fix move cursor to the end when it is not called from main thread
2 parents 701a5d4 + b0a86ce commit 6cabc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ private void OnKeyDown(object sender, KeyEventArgs e)
503503

504504
private void MoveQueryTextToEnd()
505505
{
506-
QueryTextBox.CaretIndex = QueryTextBox.Text.Length;
506+
Dispatcher.Invoke(() => QueryTextBox.CaretIndex = QueryTextBox.Text.Length);
507507
}
508508

509509
public void InitializeColorScheme()

0 commit comments

Comments
 (0)