summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editor/editor_file_system.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index 9e9821430b..65ae25e046 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -2066,7 +2066,6 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
}
if (updated) {
- _process_update_pending();
if (update_files_icon_cache) {
_update_files_icon_path();
} else {
@@ -2074,7 +2073,10 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
_update_file_icon_path(fi);
}
}
- call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
+ if (!is_scanning()) {
+ _process_update_pending();
+ call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
+ }
}
}