Browse Source

Fix MenuButton not emitting about_to_popup signal

Haoyu Qiu 4 years ago
parent
commit
6ca476b406
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/menu_button.cpp

+ 1 - 0
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();