diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-06 17:37:40 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-06 17:37:40 +0300 |
commit | e222615e979a494d5cdb69958d1690e8ac745728 (patch) | |
tree | c5f9155b1b6b05826654e6dc36200ab76bc6b27a /scene | |
parent | 0b6b49a897b35bec53765e1288c32d57afa1a293 (diff) |
Fix editor remaining dimmed after certain actions
Fixes #30368
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/popup.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp index 492e379440..9e996e5519 100644 --- a/scene/gui/popup.cpp +++ b/scene/gui/popup.cpp @@ -48,6 +48,14 @@ void Popup::_notification(int p_what) { update_configuration_warning(); } + if (p_what == NOTIFICATION_EXIT_TREE) { + if (popped_up) { + popped_up = false; + notification(NOTIFICATION_POPUP_HIDE); + emit_signal("popup_hide"); + } + } + if (p_what == NOTIFICATION_ENTER_TREE) { //small helper to make editing of these easier in editor #ifdef TOOLS_ENABLED |