-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Added a setting to enable or disable saving recent items opened #6577
Conversation
Update to hyanite main
TODO: -Hide Recent files widget when this is disabled -Doesn't allow to change recent files state if the option is disabled -Remove recent items after disabling the option
…ecent items are being saved Not working until: - Case Recent items disabled: Requires a new tab opening, won't refresh the actual opened. - Case Widgets settings: Requires a Files restart to not letting you enable Recent files.
Instead adding a new setting, I guess it shouldn't register recent items when the widget is disabled. |
I did this way because of this:
|
I'm talking about this: (Image taken from #5577 , @xezrunner comment) If we don't save recent items this jumplist will be empty too, I don't think this overlaps with Bundles. |
@duke7553 brought up the idea of keeping the list in sync with the list of recent items in File Explorer, just wondering if that changes anything in regards to this PR. |
(The Recents folder leveraged by Explorer) |
@yaichenbaum I've been thinking but I think there is nothing to change here, maybe when that is added it will modify NavigationHelper but I don't think that would require a lot of changes regarding the additions on this PR (probably just move the if condition added on this PR to the new place, but without knowing the future changes there is nothing sure). |
Okay, I think that on this state is ready to review, since: First issue: Is also present on Recent Files, if you have several tabs with Home opened, if you disable Recent Files it will only be update on the tab where you change it, but on the others will not be refreshed. I think this should be include in #6182 , and automatically refreshing the home page when there are widgets or drives changes. So, it's unrelated to this PR. About the other issue: @d2dyno1 InnerNavigationToolbar is not getting Tags state update neither until you restart Files, If you disable Tags they will still be showed as an option of rearrange until you restart Files: After restarting Files "Etiquetas de archivo" disappear: So it's unrelated to this PR too. |
@BanCrash can you move the setting to preferences? |
Done! |
Co-authored-by: Yair Aichenbaum <[email protected]>
Co-authored-by: Yair Aichenbaum <[email protected]>
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.
Code wise this looks good, but I'm concerned about the UX of this setting. Would it be better to just add recent items to the same list File Explorer uses so you can control everything in the same place?
Co-authored-by: Yair Aichenbaum <[email protected]>
It's been fixed in |
@yaichenbaum sorry about the delay to answer, I was waiting to made some test and research but since I have exams I doesn't have much time these weeks. When I made that research and tests I will answer your question with the results that I'll get. |
Please merge this I would really like this feature! :) |
Resolved / Related Issues
Items resolved / related issues by this PR.
Details of Changes
Disabling this setting will disable also Recent files widget, and won't let you enable it back until the setting is enabled again. Will remove recent items too.
You can have the setting enable and not have the recent files widget enabled, because this setting will also affect the jump list (that's why I added a new setting instead just making this when you disable recent files widget).
TO DO:
Figure out why it needs a Files restart to refresh the value of IsSavingRecentItemsEnabled in the Widgets settings.Unrelated to this PR since File Tags are not getting their value refreshed on the InnerNavigationToolbar neither.
Figure out how to refresh all home tabs opened when this changes.Unrelated to this PR since this also present on Recent Files, if you have several tabs with Home opened, if you disable Recent Files it will only be update on the tab where you change it, but on the others will not be refreshed. I think this should be include in Feature: Auto refresh drive widget & tags widget when changes are detected #6182 , and automatically refreshing the home page when there are widgets or drives changes. So, it's unrelated to this PR.
Validation
Screenshots (optional)
Disable Recent Files widget and not letting you enable it back (currently it needs a restart of Files app):