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:
committed by
Rémi Verschelde
parent
83a78186ca
commit
183f6cdd63
@ -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://") {
|
||||
|
||||
Reference in New Issue
Block a user