1
0
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:
BrotherShort
2025-04-20 11:12:07 +08:00
parent 2d3bdcac35
commit 1e1b0913bc
2 changed files with 6 additions and 5 deletions

View File

@@ -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;