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:
parent
e82daf74d4
commit
a9e8277836
1 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue