diff options
author | Hilderin <81109165+Hilderin@users.noreply.github.com> | 2024-07-03 22:10:05 -0400 |
---|---|---|
committer | Hilderin <81109165+Hilderin@users.noreply.github.com> | 2024-07-03 22:56:45 -0400 |
commit | d04b5d262933b4075c4f57eeeea91d0b8698183a (patch) | |
tree | 51a72823b3e37b2c07c08b7505f6d83c9c624923 | |
parent | 6a13fdcae3662975c101213d47a1eb3a7db63cb3 (diff) | |
download | redot-engine-d04b5d262933b4075c4f57eeeea91d0b8698183a.tar.gz |
Fix adding a translation CSV results in errors on initial import for many types of resources
-rw-r--r-- | editor/editor_file_system.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index f0dc850af0..40b7e89553 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -2072,7 +2072,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 { @@ -2080,7 +2079,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 + } } } |