diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index e842f6e88..6298fdf3d 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -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()