[MenuBar] Use PopupMenu title property as a menu name.

This commit is contained in:
Pāvels Nadtočajevs
2024-12-20 23:35:07 +02:00
parent 89001f91d2
commit 9604e98a52
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 {
@ -3044,6 +3045,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);