diff --git a/JL.Windows/GUI/PopupWindow.xaml.cs b/JL.Windows/GUI/PopupWindow.xaml.cs index 7806fc71..55aa6dc6 100644 --- a/JL.Windows/GUI/PopupWindow.xaml.cs +++ b/JL.Windows/GUI/PopupWindow.xaml.cs @@ -1111,15 +1111,14 @@ private StackPanel PrepareResultStackPanel(LookupResult result, int index, int r private async Task CheckResultForDuplicates(TextBlock[] duplicateIcons) { - bool[]? duplicateCard = await MiningUtils.CheckDuplicates(LastLookupResults, _currentText, _currentCharPosition).ConfigureAwait(false); - + bool[]? duplicateCard = await MiningUtils.CheckDuplicates(LastLookupResults, _currentText, _currentCharPosition).ConfigureAwait(true); if (duplicateCard is not null) { for (int i = 0; i < duplicateCard.Length; i++) { if (duplicateCard[i]) { - await MainWindow.Instance.Dispatcher.InvokeAsync(() => { duplicateIcons[i].Visibility = Visibility.Visible; }); + duplicateIcons[i].Visibility = Visibility.Visible; } } }