Skip to content

Commit 5ac7093

Browse files
committed
Minor
1 parent e9b4780 commit 5ac7093

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

JL.Windows/GUI/PopupWindow.xaml.cs

+9-2
Original file line numberDiff line numberDiff line change
@@ -2066,9 +2066,16 @@ private void Window_PreviewMouseDown(object sender, MouseButtonEventArgs e)
20662066
ShowMiningModeResults();
20672067
}
20682068

2069-
else if (ChildPopupWindow is { IsVisible: true, MiningMode: false })
2069+
else if (ChildPopupWindow?.IsVisible ?? false)
20702070
{
2071-
ChildPopupWindow.ShowMiningModeResults();
2071+
if (!ChildPopupWindow.MiningMode)
2072+
{
2073+
ChildPopupWindow.ShowMiningModeResults();
2074+
}
2075+
else
2076+
{
2077+
PopupWindowUtils.HidePopups(ChildPopupWindow);
2078+
}
20722079
}
20732080
}
20742081
}

0 commit comments

Comments
 (0)