Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 19, 2024
1 parent 303f68e commit a6593b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions JL.Windows/GUI/PopupWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2010,8 +2010,11 @@ private void Window_ContextMenuOpening(object sender, ContextMenuEventArgs e)

private void PopupListView_MouseLeave(object sender, MouseEventArgs e)
{
_listViewItemIndex = _firstVisibleListViewItemIndex;
LastSelectedText = LastLookupResults[_listViewItemIndex].PrimarySpelling;
if (!PopupContextMenu.IsVisible)
{
_listViewItemIndex = _firstVisibleListViewItemIndex;
LastSelectedText = LastLookupResults[_listViewItemIndex].PrimarySpelling;
}
}

private TextBox? GetDefinitionTextBox(int listViewIndex)
Expand Down

0 comments on commit a6593b2

Please sign in to comment.