Merge pull request #97488 from KoBeWi/zakaz_tłumaczeń

Disable auto translation in EditorDirDialog
This commit is contained in:
Rémi Verschelde 2024-09-26 18:45:53 +02:00
commit 645af49919
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 1 deletions

View File

@ -215,8 +215,9 @@ EditorDirDialog::EditorDirDialog() {
makedir->connect(SceneStringName(pressed), callable_mp(this, &EditorDirDialog::_make_dir)); makedir->connect(SceneStringName(pressed), callable_mp(this, &EditorDirDialog::_make_dir));
tree = memnew(Tree); tree = memnew(Tree);
vb->add_child(tree); tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
vb->add_child(tree);
tree->connect("item_activated", callable_mp(this, &EditorDirDialog::_item_activated)); tree->connect("item_activated", callable_mp(this, &EditorDirDialog::_item_activated));
tree->connect("item_collapsed", callable_mp(this, &EditorDirDialog::_item_collapsed), CONNECT_DEFERRED); tree->connect("item_collapsed", callable_mp(this, &EditorDirDialog::_item_collapsed), CONNECT_DEFERRED);