Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 12, 2024
1 parent a0de411 commit 0145399
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions JL.Windows/GUI/PopupWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 0145399

Please sign in to comment.