mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
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:
parent
83a78186ca
commit
183f6cdd63
1 changed files with 3 additions and 0 deletions
|
@ -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://") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue