Skip to content

Commit 0452cbe

Browse files
committed
Merge pull request #93919 from Hilderin/fix-csv-translation-errors-import-other-resources
Fix adding a translation CSV results in errors on initial import for many types of resources
2 parents 5f0a2dd + d04b5d2 commit 0452cbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

editor/editor_file_system.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -2066,15 +2066,17 @@ void EditorFileSystem::update_files(const Vector<String> &p_script_paths) {
20662066
}
20672067

20682068
if (updated) {
2069-
_process_update_pending();
20702069
if (update_files_icon_cache) {
20712070
_update_files_icon_path();
20722071
} else {
20732072
for (EditorFileSystemDirectory::FileInfo *fi : files_to_update_icon_path) {
20742073
_update_file_icon_path(fi);
20752074
}
20762075
}
2077-
call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
2076+
if (!is_scanning()) {
2077+
_process_update_pending();
2078+
call_deferred(SNAME("emit_signal"), "filesystem_changed"); //update later
2079+
}
20782080
}
20792081
}
20802082

0 commit comments

Comments
 (0)