diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-05-15 08:01:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 08:01:32 +0200 |
commit | 76289b5d5a9516e2b6d9001eb1c10163a616e981 (patch) | |
tree | 2ac0bb70e2e95b702a76cc6b873a8ec4bc0be157 /editor | |
parent | 27dd41519694c3a9e9e5f6abc80b8636d93f5521 (diff) | |
parent | 3ee1952e39394170a189e008e18cb2bd8320218d (diff) |
Merge pull request #8761 from noshyaar/pr2
AssetInstaller: fix toggling dir bug, scan after install
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_asset_installer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_asset_installer.cpp b/editor/editor_asset_installer.cpp index 5a54f9b46f..e3ed9fe1af 100644 --- a/editor/editor_asset_installer.cpp +++ b/editor/editor_asset_installer.cpp @@ -184,6 +184,7 @@ void EditorAssetInstaller::open(const String &p_path, int p_depth) { dir_map[path] = ti; ti->set_text(0, path.get_file() + "/"); ti->set_icon(0, get_icon("folder", "FileDialog")); + ti->set_metadata(0, String()); } else { String file = path.get_file(); String extension = file.get_extension().to_lower(); @@ -305,6 +306,7 @@ void EditorAssetInstaller::ok_pressed() { if (EditorNode::get_singleton() != NULL) EditorNode::get_singleton()->show_warning("Package Installed Successfully!", "Success!"); } + EditorFileSystem::get_singleton()->scan_changes(); } void EditorAssetInstaller::_bind_methods() { |