Fix MenuButton not emitting about_to_popup signal

This commit is contained in:
Haoyu Qiu 2021-08-16 20:53:10 +08:00
parent 1ee61a501f
commit 6ca476b406

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