summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-26 11:59:50 +0200
committerGitHub <noreply@github.com>2022-08-26 11:59:50 +0200
commitac7b5111f548e87b3555afb4f2a83ecd1ffbe85e (patch)
treeb9a3d5c00e9a071ea012e33606bd5c50a8cfb52f /editor
parent7013c68619dcd42d03497b538f141ad585535e08 (diff)
parentcd095ab64ad492ef0a775c3ef5b8fa2aa8d0edd5 (diff)
downloadredot-engine-ac7b5111f548e87b3555afb4f2a83ecd1ffbe85e.tar.gz
Merge pull request #64768 from bruvzg/popups_hide_if_visible
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_path.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_path.cpp b/editor/editor_path.cpp
index 87ebd3e1c1..adbfacd131 100644
--- a/editor/editor_path.cpp
+++ b/editor/editor_path.cpp
@@ -80,6 +80,11 @@ void EditorPath::_add_children_to_popup(Object *p_obj, int p_depth) {
}
void EditorPath::_show_popup() {
+ if (sub_objects_menu->is_visible()) {
+ sub_objects_menu->hide();
+ return;
+ }
+
sub_objects_menu->clear();
Size2 size = get_size();