Skip to content

Commit 8d137bc

Browse files
committed
Fix favorite folders that are outside of the project being displayed in FileSystemDock's file list
1 parent 3c7f9b9 commit 8d137bc

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
@@ -991,6 +991,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
991991
// Display the favorites.
992992
Vector<String> favorites_list = EditorSettings::get_singleton()->get_favorites();
993993
for (const String &favorite : favorites_list) {
994+
if (!favorite.begins_with("res://")) {
995+
continue;
996+
}
994997
String text;
995998
Ref<Texture2D> icon;
996999
if (favorite == "res://") {

0 commit comments

Comments
 (0)