Skip to content

Commit 906d0e8

Browse files
committed
remove Dispatcher guide since it is ensured to be called after QueryText change (Attempted)
1 parent 29081ec commit 906d0e8

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
@@ -675,7 +675,7 @@ private void MoveQueryTextToEnd()
675675
{
676676
// QueryTextBox seems to be update with a DispatcherPriority as low as ContextIdle.
677677
// To ensure QueryTextBox is up to date with QueryText from the View, we need to Dispatch with such a priority
678-
Dispatcher.Invoke(() => QueryTextBox.CaretIndex = QueryTextBox.Text.Length, System.Windows.Threading.DispatcherPriority.ContextIdle);
678+
Dispatcher.Invoke(() => QueryTextBox.CaretIndex = QueryTextBox.Text.Length);
679679
}
680680

681681
public void InitializeColorScheme()

0 commit comments

Comments
 (0)