Bläddra i källkod

Fix android template install validation.

fhuya 5 år sedan
förälder
incheckning
5b80dc9a2a
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      editor/export_template_manager.cpp

+ 1 - 3
editor/export_template_manager.cpp

@@ -547,9 +547,7 @@ void ExportTemplateManager::_notification(int p_what) {
 bool ExportTemplateManager::can_install_android_template() {
 bool ExportTemplateManager::can_install_android_template() {
 
 
 	const String templates_dir = EditorSettings::get_singleton()->get_templates_dir().plus_file(VERSION_FULL_CONFIG);
 	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() {
 Error ExportTemplateManager::install_android_template() {