Skip to content

Single click in file dialog enters two directories #5053

Closed
@codesoap

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

  1. Run go run fyne.io/fyne/v2/cmd/[email protected].
  2. Go to the "Dialogs" tab.
  3. Click "Folder Open".
  4. 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

54b25af

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

FileDialogImprovements to the builtin file dialogsblockerItems that would block a forthcoming releasebugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions