From 0145399a3dca8974d653c9ade006ff876cdb9a22 Mon Sep 17 00:00:00 2001 From: rampaa Date: Thu, 12 Dec 2024 21:29:08 +0300 Subject: [PATCH] Minor --- JL.Windows/GUI/PopupWindow.xaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } } }