mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix some menu bar items unresponsive after language change
This commit is contained in:
parent
46c495ca21
commit
51e8b5947f
1 changed files with 6 additions and 0 deletions
|
|
@ -320,12 +320,18 @@ void MenuBar::_notification(int p_what) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!is_global) {
|
||||
update_minimum_size();
|
||||
}
|
||||
} break;
|
||||
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
for (int i = 0; i < menu_cache.size(); i++) {
|
||||
shape(menu_cache.write[i]);
|
||||
}
|
||||
if (global_menu_tag.is_empty()) {
|
||||
update_minimum_size();
|
||||
}
|
||||
} break;
|
||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||
if (is_native_menu()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue