ソースを参照

Merge pull request #14809 from onur/fix-export-templates-install-from-file

Fix installing export templates from file
Noshyaar 7 年 前
コミット
55e2ff6b2e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      editor/export_template_manager.cpp

+ 1 - 1
editor/export_template_manager.cpp

@@ -555,7 +555,7 @@ ExportTemplateManager::ExportTemplateManager() {
 	template_open->add_filter("*.tpz ; Godot Export Templates");
 	template_open->add_filter("*.tpz ; Godot Export Templates");
 	template_open->set_access(FileDialog::ACCESS_FILESYSTEM);
 	template_open->set_access(FileDialog::ACCESS_FILESYSTEM);
 	template_open->set_mode(FileDialog::MODE_OPEN_FILE);
 	template_open->set_mode(FileDialog::MODE_OPEN_FILE);
-	template_open->connect("file_selected", this, "_install_from_file");
+	template_open->connect("file_selected", this, "_install_from_file", varray(true));
 	add_child(template_open);
 	add_child(template_open);
 
 
 	set_title(TTR("Export Template Manager"));
 	set_title(TTR("Export Template Manager"));