summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorLightning_A <50304111+LightningAA@users.noreply.github.com>2021-03-12 16:32:53 -0700
committerLightning_A <aaronjrecord@gmail.com>2021-03-18 11:57:01 -0600
commitc562c6943f86f85d143fa301a5cca0a3eac934ff (patch)
tree50212e80f8852c903acf259e6798d4f0450c81da /editor
parent2274d4eebc5b0af3c59a9b0ea7877d9fd729dfc4 (diff)
Remove current export template version from "Installed Versions"
**Not tested** (I don't have an easy way to test currently). Resolves https://github.com/godotengine/godot-proposals/issues/2394 .
Diffstat (limited to 'editor')
-rw-r--r--editor/export_template_manager.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp
index 781d21c370..0f5c01be0e 100644
--- a/editor/export_template_manager.cpp
+++ b/editor/export_template_manager.cpp
@@ -116,13 +116,14 @@ void ExportTemplateManager::_update_template_list() {
}
for (Set<String>::Element *E = templates.back(); E; E = E->prev()) {
- HBoxContainer *hbc = memnew(HBoxContainer);
- Label *version = memnew(Label);
- version->set_modulate(current->get_theme_color("disabled_font_color", "Editor"));
String text = E->get();
if (text == current_version) {
- text += " " + TTR("(Current)");
+ continue;
}
+
+ HBoxContainer *hbc = memnew(HBoxContainer);
+ Label *version = memnew(Label);
+ version->set_modulate(current->get_theme_color("disabled_font_color", "Editor"));
version->set_text(text);
version->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hbc->add_child(version);
@@ -653,7 +654,7 @@ ExportTemplateManager::ExportTemplateManager() {
main_vb->add_margin_child(TTR("Current Version:"), current_hb, false);
installed_scroll = memnew(ScrollContainer);
- main_vb->add_margin_child(TTR("Installed Versions:"), installed_scroll, true);
+ main_vb->add_margin_child(TTR("Other Installed Versions:"), installed_scroll, true);
installed_vb = memnew(VBoxContainer);
installed_scroll->add_child(installed_vb);