Centralize retained popup panel closing
This commit is contained in:
@@ -715,10 +715,7 @@ kEventResult NodePanelStroke::handle_event(Event* e)
|
||||
case kEventType::MouseUpL:
|
||||
if (!m_mouse_inside)
|
||||
{
|
||||
mouse_release();
|
||||
m_parent->remove_child(this);
|
||||
if (on_popup_close)
|
||||
on_popup_close(this);
|
||||
pp::panopainter::close_legacy_popup_panel(*this, on_popup_close);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user