diff options
| author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-05-05 13:50:37 -0300 |
|---|---|---|
| committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-05-06 01:59:34 -0300 |
| commit | a242bf464a1d79291f5d529276b2c1efddf5359a (patch) | |
| tree | 50d6d0f50c9becc14718a672313e91322945e501 /scene/gui/tabs.cpp | |
| parent | 5128430700f3f9751e422ce7fd9fcc4f5eeae553 (diff) | |
| download | redot-engine-a242bf464a1d79291f5d529276b2c1efddf5359a.tar.gz | |
Fix 'TabContainer' not updating its tab titles when locale is changed
Diffstat (limited to 'scene/gui/tabs.cpp')
| -rw-r--r-- | scene/gui/tabs.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scene/gui/tabs.cpp b/scene/gui/tabs.cpp index ac643c1320..36571cc878 100644 --- a/scene/gui/tabs.cpp +++ b/scene/gui/tabs.cpp @@ -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; } } |
