remove Dispatcher guide since it is ensured to be called after QueryText change (Attempted)

This commit is contained in:
Hongtao Zhang 2022-12-11 11:04:01 -06:00
parent 29081ec281
commit 906d0e8c5a
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -675,7 +675,7 @@ namespace Flow.Launcher
{
// QueryTextBox seems to be update with a DispatcherPriority as low as ContextIdle.
// To ensure QueryTextBox is up to date with QueryText from the View, we need to Dispatch with such a priority
Dispatcher.Invoke(() => QueryTextBox.CaretIndex = QueryTextBox.Text.Length, System.Windows.Threading.DispatcherPriority.ContextIdle);
Dispatcher.Invoke(() => QueryTextBox.CaretIndex = QueryTextBox.Text.Length);
}
public void InitializeColorScheme()