You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
In the FileDialog, when selecting one of the drivers (which in here are the folders in "Places"), while correctly going to the location, it will still have the first one selected:
From the little digging I did, this is because DirAccess::get_current_drive() only checks if the beginning of the paths is equal to get its results. And since all of them start with "/home/[user]", it just always returns the first one.
Also, shouldn't "/home/[user]" be hidden to begin with? As otherwise it would lead to the dialog expanding drastically from drivers with big names.
The text was updated successfully, but these errors were encountered:
Also, shouldn't "/home/[user]" be hidden to begin with? As otherwise it would lead to the dialog expanding drastically from drivers with big names.
Sounds good to me, but we should replace "/home/[user]" with "Home" if there's nothing after "/home/[user]". Also, paths that don't start with "/home/[user]" should be left as-is (to distinguish different mount points).
@follower Sorry, I accidentally removed your comment instead of removing mine... 😶
Godot version:
6c9ccf1
OS/device including version:
GNU/Linux at least.
Issue description:
In the
FileDialog
, when selecting one of the drivers (which in here are the folders in "Places"), while correctly going to the location, it will still have the first one selected:From the little digging I did, this is because
DirAccess::get_current_drive()
only checks if the beginning of the paths is equal to get its results. And since all of them start with "/home/[user]", it just always returns the first one.Also, shouldn't "/home/[user]" be hidden to begin with? As otherwise it would lead to the dialog expanding drastically from drivers with big names.
The text was updated successfully, but these errors were encountered: