Fix favorite folders that are outside of the project being displayed in FileSystemDock's file list

(cherry picked from commit 8d137bcd29)
This commit is contained in:
Artemy Fedotov 2025-09-11 16:44:40 +04:00 committed by Rémi Verschelde
parent 83a78186ca
commit 183f6cdd63
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -991,6 +991,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
// Display the favorites.
Vector<String> favorites_list = EditorSettings::get_singleton()->get_favorites();
for (const String &favorite : favorites_list) {
if (!favorite.begins_with("res://")) {
continue;
}
String text;
Ref<Texture2D> icon;
if (favorite == "res://") {