Merge pull request #36731 from m4gr3d/fix_android_templates_install_detection

Fix android template install validation.
This commit is contained in:
Rémi Verschelde 2020-03-02 17:52:49 +01:00 committed by GitHub
commit 0c22f5a447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -547,9 +547,7 @@ void ExportTemplateManager::_notification(int p_what) {
bool ExportTemplateManager::can_install_android_template() {
const String templates_dir = EditorSettings::get_singleton()->get_templates_dir().plus_file(VERSION_FULL_CONFIG);
return FileAccess::exists(templates_dir.plus_file("android_source.zip")) &&
FileAccess::exists(templates_dir.plus_file("android_release.apk")) &&
FileAccess::exists(templates_dir.plus_file("android_debug.apk"));
return FileAccess::exists(templates_dir.plus_file("android_source.zip"));
}
Error ExportTemplateManager::install_android_template() {