mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Fix unexpected auto translation of Tree content
This commit is contained in:
parent
fe01776f05
commit
8cd1ebbd6d
37 changed files with 54 additions and 0 deletions
|
|
@ -246,6 +246,7 @@ DependencyEditor::DependencyEditor() {
|
|||
add_child(vb);
|
||||
|
||||
tree = memnew(Tree);
|
||||
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
tree->set_columns(2);
|
||||
tree->set_column_titles_visible(true);
|
||||
tree->set_column_title(0, TTR("Resource"));
|
||||
|
|
@ -672,6 +673,7 @@ DependencyRemoveDialog::DependencyRemoveDialog() {
|
|||
vb->add_child(text);
|
||||
|
||||
owners = memnew(Tree);
|
||||
owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
owners->set_hide_root(true);
|
||||
vb->add_child(owners);
|
||||
owners->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
|
@ -724,6 +726,7 @@ DependencyErrorDialog::DependencyErrorDialog() {
|
|||
add_child(vb);
|
||||
|
||||
files = memnew(Tree);
|
||||
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
files->set_hide_root(true);
|
||||
vb->add_margin_child(TTR("Load failed due to missing dependencies:"), files, true);
|
||||
files->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
|
@ -879,6 +882,7 @@ OrphanResourcesDialog::OrphanResourcesDialog() {
|
|||
add_child(vbc);
|
||||
|
||||
files = memnew(Tree);
|
||||
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
files->set_columns(2);
|
||||
files->set_column_titles_visible(true);
|
||||
files->set_column_custom_minimum_width(1, 100 * EDSCALE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue