mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Merge pull request #110415 from fstxz/fix_favorites
Fix favorite folders that are outside of the project being displayed in `FileSystemDock`'s file list
This commit is contained in:
commit
5088a93024
1 changed files with 3 additions and 0 deletions
|
@ -981,6 +981,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