From bfae02c4ce34d425f5341f9bff2f036bdabe78ee Mon Sep 17 00:00:00 2001 From: Jason0214 Date: Wed, 28 Feb 2018 15:14:12 -0800 Subject: update favorite_dirs list after move or rename a dir --- editor/filesystem_dock.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editor/filesystem_dock.h') diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index 377316d1ba..c8448a1022 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -176,12 +176,13 @@ private: void _file_selected(); void _dir_selected(); - void _get_all_files_in_dir(EditorFileSystemDirectory *efsd, Vector &files) const; + void _get_all_items_in_dir(EditorFileSystemDirectory *efsd, Vector &files, Vector &folders) const; void _find_remaps(EditorFileSystemDirectory *efsd, const Map &renames, Vector &to_remaps) const; - void _try_move_item(const FileOrFolder &p_item, const String &p_new_path, Map &p_renames) const; + void _try_move_item(const FileOrFolder &p_item, const String &p_new_path, Map &p_file_renames, Map &p_folder_renames) const; void _try_duplicate_item(const FileOrFolder &p_item, const String &p_new_path) const; void _update_dependencies_after_move(const Map &p_renames) const; void _update_resource_paths_after_move(const Map &p_renames) const; + void _update_favorite_dirs_list_after_move(const Map &p_renames) const; void _make_dir_confirm(); void _rename_operation_confirm(); -- cgit v1.2.3