-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle hidden files #1689
Toggle hidden files #1689
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the PR and the great work you have done in effort of continuing the work of the other PR. I just had a quick look and suggested some changes. This is all I have time with, but I hope that the suggestions makes sense :)
Doesn't an accordion have to have space to expand into? Isn't a Popup cleaner?
________________________________
From: Stuart Scott <notifications@github.com>
Sent: 27 December 2020 20:00
To: fyne-io/fyne <fyne@noreply.github.com>
Cc: adrianre12 <adrianrevill@hotmail.com>; Author <author@noreply.github.com>
Subject: Re: [fyne-io/fyne] Toggle hidden files (#1689)
@stuartmscott commented on this pull request.
________________________________
In dialog/file.go<#1689 (comment)>:
+
+ left := fyne.NewContainerWithLayout(layout.NewBorderLayout(nil, optionsButton, nil, nil), favoritesGroup, optionsButton)
+
+ return fyne.NewContainerWithLayout(layout.NewBorderLayout(header, footer, left, nil),
+ left, header, footer, body)
+
+}
+
+func (f *fileDialog) optionsMenu(position fyne.Position, buttonSize fyne.Size) {
+ hiddenFiles := widget.NewCheck("Show Hidden Files", func(changed bool) {
+ f.showHidden = changed
+ f.refreshDir(f.dir)
+ })
+ hiddenFiles.SetChecked(f.showHidden)
+
+ title := widget.NewLabel("Options")
Or options could be an Accordion
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1689 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE4ZV5G5IQ5O4VVTAHPXOQTSW6G57ANCNFSM4VK5EPCQ>.
|
This might need to be a separate PR, but we should consider also having a keyboard shortcut/shortcuts. I believe that on macOS, this is command+shift+n, and on Linux it's normally control+h. We might want to either support both and/or toggle it by OS. I don't think this is a blocker for merging this PR, but if it's going to be separated, we should move this into an issue. |
Co-authored-by: Stuart Scott <stuart.murray.scott@gmail.com>
The tests are failing on animations. I think you might need to rebase on develop to get that fixed (if I remember correctly). |
@adrianre12 Could you please rebase on develop? |
Sry, was having a couple of days off. Merged now and tests passed
…________________________________
From: Jacob <notifications@github.com>
Sent: 04 January 2021 11:57
To: fyne-io/fyne <fyne@noreply.github.com>
Cc: adrianre12 <adrianrevill@hotmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [fyne-io/fyne] Toggle hidden files (#1689)
@adrianre12<https://github.com/adrianre12> Could you please rebase on develop?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1689 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE4ZV5DDK33YRURSYQTCLULSYGULHANCNFSM4VK5EPCQ>.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now. Thank you 👍
Description:
This is a continuation of kgentile's PR #1282
I have attempted to address the outstanding requested changes.
Fixes #1278
Checklist:
This is the dialog/testdata folder not showing hidden files
Clicking Options button pops up a list, at the moment only one entry Show Hidden Files. Clicking this refreshes the file dialog and shows the hidden files. I have included the file .hidden in the testdata folder and ensured it works on windows and Linux.