Browse Source

Refresh Filesystem Dock after android build template is created

Anish Mishra 10 tháng trước cách đây
mục cha
commit
2323042e7b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      editor/export/export_template_manager.cpp

+ 2 - 1
editor/export/export_template_manager.cpp

@@ -34,6 +34,7 @@
 #include "core/io/json.h"
 #include "core/io/zip_io.h"
 #include "core/version.h"
+#include "editor/editor_file_system.h"
 #include "editor/editor_node.h"
 #include "editor/editor_paths.h"
 #include "editor/editor_settings.h"
@@ -876,7 +877,7 @@ Error ExportTemplateManager::install_android_template_from_file(const String &p_
 
 	ProgressDialog::get_singleton()->end_task("uncompress_src");
 	unzClose(pkg);
-
+	EditorFileSystem::get_singleton()->scan_changes();
 	return OK;
 }