You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Improve SceneTree auto-translation
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user