diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-25 23:23:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 23:23:52 +0200 |
commit | 14e2348a60d6269b530d057a99538ce458bfeeac (patch) | |
tree | aace3bd1a8b22437f7c30e51a5ac48ec99410945 /editor | |
parent | 5c04228a9b1632f92a5fc970939bee3224ddac39 (diff) | |
parent | d96388e6f67c45158abbaa4bddb06c140949e657 (diff) |
Merge pull request #32812 from Calinou/template-manager-fix-devel-condition
Fix the download availability check in the export templates manager
Diffstat (limited to 'editor')
-rw-r--r-- | editor/export_template_manager.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index 95c615afa3..f47f9b8b92 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -69,9 +69,15 @@ void ExportTemplateManager::_update_template_list() { memdelete(d); String current_version = VERSION_FULL_CONFIG; - // Downloadable export templates are only available for stable, alpha, beta and RC versions. + // Downloadable export templates are only available for stable and official alpha/beta/RC builds + // (which always have a number following their status, e.g. "alpha1"). // Therefore, don't display download-related features when using a development version - const bool downloads_available = String(VERSION_STATUS) != String("dev"); + // (whose builds aren't numbered). + const bool downloads_available = + String(VERSION_STATUS) != String("dev") && + String(VERSION_STATUS) != String("alpha") && + String(VERSION_STATUS) != String("beta") && + String(VERSION_STATUS) != String("rc"); Label *current = memnew(Label); current->set_h_size_flags(SIZE_EXPAND_FILL); |