Centralize layout unload destruction
This commit is contained in:
@@ -74,7 +74,7 @@ void bind_legacy_popup_close_destroys_overlay(
|
||||
{
|
||||
popup.on_popup_close = [overlay](Node*) {
|
||||
if (overlay) {
|
||||
overlay->destroy();
|
||||
destroy_legacy_node(*overlay);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user