From 6ca476b406b8ac99fb47af2ea31221d6b1469717 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 16 Aug 2021 20:53:10 +0800 Subject: [PATCH] Fix MenuButton not emitting about_to_popup signal --- scene/gui/menu_button.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 63b5793b3e6..dc6c7fec283 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -86,6 +86,7 @@ void MenuButton::_popup_visibility_changed(bool p_visible) { } void MenuButton::pressed() { + emit_signal(SNAME("about_to_popup")); Size2 size = get_size(); Point2 gp = get_screen_position();