Closed
Description
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When clicking a directory in a file dialog, the dialog will go two directories deeper instead of one, whenever possible.
This has been reported to me by a @vaibhav-kaushal: codesoap/spind#1
How to reproduce
- Run
go run fyne.io/fyne/v2/cmd/[email protected]
. - Go to the "Dialogs" tab.
- Click "Folder Open".
- Now click a directory which also contains a directory "at the same position"; this means if the first directory is, e.g., the third entry, this directory should also contain another directory as its third entry.
In case I didn't explain 4. well enough, here is an example: Create mkdir -p /tmp/foo/bar/baz
, then go to /tmp/foo
with the file dialog and click "bar". Instead of just changing directory to "bar", fyne will directly go to "bar/baz".
Screenshots
No response
Example code
go run fyne.io/fyne/v2/cmd/[email protected]
Fyne version
Go compiler version
go version go1.22.1 openbsd/amd64
Operating system and version
OpenBSD 7.5
Additional Information
git bisect
shows me that 54b25af introduced the bug.
Activity