mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #28709 from YeldhamDev/tabcontainer_locale_update
Fix 'TabContainer' not updating its tab titles when locale is changed
This commit is contained in:
commit
7b7a664a97
@ -146,6 +146,11 @@ void TabContainer::_notification(int p_what) {
|
||||
|
||||
switch (p_what) {
|
||||
|
||||
case NOTIFICATION_TRANSLATION_CHANGED: {
|
||||
|
||||
minimum_size_changed();
|
||||
update();
|
||||
} break;
|
||||
case NOTIFICATION_RESIZED: {
|
||||
|
||||
Vector<Control *> tabs = _get_tabs();
|
||||
@ -181,7 +186,6 @@ void TabContainer::_notification(int p_what) {
|
||||
first_tab_cache--;
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_DRAW: {
|
||||
|
||||
RID canvas = get_canvas_item();
|
||||
|
@ -222,6 +222,10 @@ void Tabs::_notification(int p_what) {
|
||||
|
||||
switch (p_what) {
|
||||
|
||||
case NOTIFICATION_TRANSLATION_CHANGED: {
|
||||
minimum_size_changed();
|
||||
update();
|
||||
} break;
|
||||
case NOTIFICATION_MOUSE_EXIT: {
|
||||
rb_hover = -1;
|
||||
cb_hover = -1;
|
||||
@ -232,7 +236,6 @@ void Tabs::_notification(int p_what) {
|
||||
_update_cache();
|
||||
_ensure_no_over_offset();
|
||||
ensure_tab_visible(current);
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_DRAW: {
|
||||
_update_cache();
|
||||
@ -394,7 +397,6 @@ void Tabs::_notification(int p_what) {
|
||||
} else {
|
||||
buttons_visible = false;
|
||||
}
|
||||
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user