mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve SceneTree auto-translation
This commit is contained in:
parent
2d3bdcac35
commit
1e1b0913bc
2 changed files with 6 additions and 5 deletions
|
|
@ -1352,10 +1352,11 @@ void SceneTreeEditor::_notification(int p_what) {
|
|||
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
|
||||
|
||||
// When we change theme we need to re-do everything.
|
||||
[[fallthrough]];
|
||||
}
|
||||
case NOTIFICATION_TRANSLATION_CHANGED: {
|
||||
// When we change theme or translation we need to re-do everything.
|
||||
_reset();
|
||||
|
||||
_update_tree();
|
||||
} break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue