Add "Clear list" option to File > Recent files menu - #463
Merged
Conversation
Previously the recent files list could only be emptied via a full factory reset. Add a "Clear list" item at the bottom of the File > Recent files submenu (shown only when the list is non-empty), separated from the file entries. RecentFilesManager gains a clear() method that removes all recent file entries and persists the change to disk immediately. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #453.
Previously the File → Recent files list could only be emptied by a full factory reset, which also throws away every other setting. This adds a dedicated way to clear just the recent-files trail (e.g. on a shared machine).
Changes
RecentFilesManager: newclear()method removes allPROPERTY_RECENT_FILE_PREFIX + ientries from the main config and persists the change to disk immediately (props.save()), logging a warning if the write fails.MainWindowController#refreshRecentFilesMenu: when the list is non-empty, append a separator and a Clear list item that clears the list and refreshes the menu. When empty, only the existing disabled "No recent files" placeholder shows, so Clear list appears only when there's something to clear.messages.properties: newjfx.gui.menu.file.recentFiles.clear=Clear listkey (English; other locales fall back until translated).🤖 Generated with Claude Code