Skip to content

Commit 5088a93

Browse files
committed
Merge pull request godotengine#110415 from fstxz/fix_favorites
Fix favorite folders that are outside of the project being displayed in `FileSystemDock`'s file list
2 parents a078895 + 8d137bc commit 5088a93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/docks/filesystem_dock.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
981981
// Display the favorites.
982982
Vector<String> favorites_list = EditorSettings::get_singleton()->get_favorites();
983983
for (const String &favorite : favorites_list) {
984+
if (!favorite.begins_with("res://")) {
985+
continue;
986+
}
984987
String text;
985988
Ref<Texture2D> icon;
986989
if (favorite == "res://") {

0 commit comments

Comments
 (0)