summaryrefslogtreecommitdiff
path: root/editor/filesystem_dock.cpp
diff options
context:
space:
mode:
authorMateo Kuruk Miccino <mateomiccino@gmail.com>2021-02-27 17:43:26 -0300
committerMateo Kuruk Miccino <mateomiccino@gmail.com>2021-05-01 22:12:02 -0300
commitdc7693867994620c390e619b91d23bdd1f8cba4e (patch)
treebb6d049cc3bf19f5357c016088bb361f0a463e0e /editor/filesystem_dock.cpp
parent33a0fb6e02ce9ee5d2fe97377a3ec84591b59f7c (diff)
FileSystem: Force update when we delete a folder from the editor and searching changes only if we change the directory successfully in the scan_fs_changes
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r--editor/filesystem_dock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 899070f036..09424647fe 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1465,6 +1465,10 @@ void FileSystemDock::_folder_removed(String p_folder) {
}
current_path->set_text(path);
+ EditorFileSystemDirectory *efd = EditorFileSystem::get_singleton()->get_filesystem_path(path);
+ if (efd) {
+ efd->force_update();
+ }
}
void FileSystemDock::_rename_operation_confirm() {