mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-03 06:45:53 +01:00
Fix missing favorite files in filesystem dock
(cherry picked from commit cbe363d7161d765577e9babf22a2d6f158b6259a)
This commit is contained in:
parent
718fad73eb
commit
028a39f49b
@ -252,10 +252,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);
|
||||
|
Loading…
Reference in New Issue
Block a user