Merge pull request #100671 from bruvzg/get_menu

[MenuBar] Use PopupMenu title property as a menu name.
This commit is contained in:
Rémi Verschelde 2024-12-20 23:57:47 +01:00
commit a7a2a12bfd
No known key found for this signature in database
GPG key ID: C3336907360768E1
5 changed files with 40 additions and 6 deletions

View file

@ -303,6 +303,7 @@ void Window::set_title(const String &p_title) {
}
}
}
emit_signal("title_changed");
}
String Window::get_title() const {
@ -3051,6 +3052,7 @@ void Window::_bind_methods() {
ADD_SIGNAL(MethodInfo("theme_changed"));
ADD_SIGNAL(MethodInfo("dpi_changed"));
ADD_SIGNAL(MethodInfo("titlebar_changed"));
ADD_SIGNAL(MethodInfo("title_changed"));
BIND_CONSTANT(NOTIFICATION_VISIBILITY_CHANGED);
BIND_CONSTANT(NOTIFICATION_THEME_CHANGED);