You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Fix missing favorite files in filesystem dock
(cherry picked from commit cbe363d716)
This commit is contained in:
committed by
Rémi Verschelde
parent
bcc93c3e7c
commit
41d0486ad1
@@ -223,10 +223,11 @@ void FileSystemDock::_update_tree(const Vector<String> &p_uncollapsed_paths, boo
|
||||
DirAccessRef da = DirAccess::create(DirAccess::ACCESS_RESOURCES);
|
||||
bool fav_changed = false;
|
||||
for (int i = favorite_paths.size() - 1; i >= 0; i--) {
|
||||
if (!da->dir_exists(favorite_paths[i])) {
|
||||
favorite_paths.remove(i);
|
||||
fav_changed = true;
|
||||
if (da->dir_exists(favorite_paths[i]) || da->file_exists(favorite_paths[i])) {
|
||||
continue;
|
||||
}
|
||||
favorite_paths.remove(i);
|
||||
fav_changed = true;
|
||||
}
|
||||
if (fav_changed) {
|
||||
EditorSettings::get_singleton()->set_favorites(favorite_paths);
|
||||
|
||||
Reference in New Issue
Block a user