diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-16 15:38:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 15:38:27 +0200 |
commit | 5d5e7418f9dbe0e46673d736a8d1e45afeddbc73 (patch) | |
tree | 90fc840ffa9b1f1e88ceb7bdb806f87188a47c05 /scene/gui/menu_button.cpp | |
parent | fff9a451a194132deb8ccf7feced9137b78587e9 (diff) | |
parent | 6ca476b406b8ac99fb47af2ea31221d6b1469717 (diff) |
Merge pull request #51731 from timothyqiu/menu-button-signal
Fix `MenuButton` not emitting `about_to_popup` signal
Diffstat (limited to 'scene/gui/menu_button.cpp')
-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(); |