Переглянути джерело

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

Fix `MenuButton` not emitting `about_to_popup` signal
Rémi Verschelde 4 роки тому
батько
коміт
5d5e7418f9
1 змінених файлів з 1 додано та 0 видалено
  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();