Merge pull request #51731 from timothyqiu/menu-button-signal

Fix `MenuButton` not emitting `about_to_popup` signal
This commit is contained in:
Rémi Verschelde 2021-08-16 15:38:27 +02:00 committed by GitHub
commit 5d5e7418f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();