1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed issue where breakpoint configure from hover watch closes

This commit is contained in:
Brian Fiete 2020-05-19 10:42:20 -07:00
parent e82daf74d4
commit a9e8277836

View file

@ -413,7 +413,17 @@ namespace IDE.ui
void HandleMouseDown(MouseEvent evt)
{
WidgetWindow widgetWindow = (WidgetWindow)evt.mSender;
if ((!(widgetWindow.mRootWidget is HoverWatch)) && (!(widgetWindow.mRootWidget is DarkMenuContainer)) && (!(widgetWindow.mRootWidget is DarkTooltipContainer)))
bool canClose = true;
var checkWindow = widgetWindow;
while (checkWindow != null)
{
if ((checkWindow.mRootWidget is HoverWatch) || (widgetWindow.mRootWidget is DarkMenuContainer) || (widgetWindow.mRootWidget is DarkTooltipContainer))
canClose = false;
checkWindow = checkWindow.mParent as WidgetWindow;
}
if (canClose)
Close();
}