diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-08-16 20:53:10 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-08-16 20:53:10 +0800 |
commit | 6ca476b406b8ac99fb47af2ea31221d6b1469717 (patch) | |
tree | cad94992b135eec8e7177d67b8198943bd05f246 | |
parent | 1ee61a501f1f01d619b85d3de53cef76914885e2 (diff) |
Fix MenuButton not emitting about_to_popup signal
-rw-r--r-- | scene/gui/menu_button.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 63b5793b3e..dc6c7fec28 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(); |