summaryrefslogtreecommitdiff
path: root/editor/filesystem_dock.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-26 15:24:35 +0100
committerGitHub <noreply@github.com>2021-01-26 15:24:35 +0100
commitf6af5b6eacd035334501fc8c3d9b814dfe6de988 (patch)
tree06d617e58fcd1c69b0658f2aca6e4fced0c590e0 /editor/filesystem_dock.cpp
parent1940197ac7eb820df34c0f920e31b4a8b26b891a (diff)
parentb3b455c167aa81ce0b583afea66f0118384cf6c9 (diff)
Merge pull request #45233 from YeldhamDev/filedock_path_fix
Update path in the FileSystem dock after doing file operations
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r--editor/filesystem_dock.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index e8cf081320..8a248f4f35 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1407,10 +1407,16 @@ void FileSystemDock::_make_scene_confirm() {
void FileSystemDock::_file_removed(String p_file) {
emit_signal("file_removed", p_file);
+
+ path = "res://";
+ current_path->set_text(path);
}
void FileSystemDock::_folder_removed(String p_folder) {
emit_signal("folder_removed", p_folder);
+
+ path = "res://";
+ current_path->set_text(path);
}
void FileSystemDock::_rename_operation_confirm() {
@@ -1465,6 +1471,9 @@ void FileSystemDock::_rename_operation_confirm() {
print_verbose("FileSystem: saving moved scenes.");
_save_scenes_after_move(file_renames);
+
+ path = new_path;
+ current_path->set_text(path);
}
void FileSystemDock::_duplicate_operation_confirm() {
@@ -1573,6 +1582,9 @@ void FileSystemDock::_move_operation_confirm(const String &p_to_path, bool p_ove
print_verbose("FileSystem: saving moved scenes.");
_save_scenes_after_move(file_renames);
+
+ path = "res://";
+ current_path->set_text(path);
}
}