Skip to content

Add "Clear list" option to File > Recent files menu - #463

Merged
kwart merged 2 commits into
masterfrom
453-clear-recent-files
Jul 23, 2026
Merged

Add "Clear list" option to File > Recent files menu#463
kwart merged 2 commits into
masterfrom
453-clear-recent-files

Conversation

@kwart

@kwart kwart commented Jul 23, 2026

Copy link
Copy Markdown
Member

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: new clear() method removes all PROPERTY_RECENT_FILE_PREFIX + i entries 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: new jfx.gui.menu.file.recentFiles.clear=Clear list key (English; other locales fall back until translated).

🤖 Generated with Claude Code

kwart and others added 2 commits July 23, 2026 18:10
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>
@kwart
kwart merged commit b25ede0 into master Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to clear the File > Recent files list

1 participant