Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Feb 17, 2024
1 parent baf3570 commit 6c66cb9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions JL.Windows/GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,15 @@ public async Task CopyFromWebSocket(string text)

HandlePostCopy(text);

if (ConfigManager.AutoLookupFirstTermWhenTextIsCopiedFromWebSocket
&& (!ConfigManager.AutoLookupFirstTermOnTextChangeOnlyWhenMainWindowIsMinimized
|| WindowState is WindowState.Minimized))
await Dispatcher.Invoke(async () =>
{
await FirstPopupWindow.LookupOnCharPosition(MainTextBox, text, 0, true).ConfigureAwait(false);
}
if (ConfigManager.AutoLookupFirstTermWhenTextIsCopiedFromWebSocket
&& (!ConfigManager.AutoLookupFirstTermOnTextChangeOnlyWhenMainWindowIsMinimized
|| WindowState is WindowState.Minimized))
{
await FirstPopupWindow.LookupOnCharPosition(MainTextBox, text, 0, true).ConfigureAwait(false);
}
}).ConfigureAwait(false);
}
}
}
Expand Down

0 comments on commit 6c66cb9

Please sign in to comment.