Merge pull request #1777 from norepro/add-clear-recents-button

feat(files): Add button to clear recents
This commit is contained in:
Jeremy Soller 2026-05-11 15:04:34 -06:00 • committed by GitHub
commit 3548615d40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 31 additions and 0 deletions

View file

@ -4576,6 +4576,14 @@ impl Application for App {
tab::Command::DropFiles(to, from) => {
commands.push(self.update(Message::PasteContents(to, from)));
}
tab::Command::ClearRecents => {
match recently_used_xbel::clear_recently_used() {
Ok(()) => {}
Err(err) => {
log::warn!("failed to clear recents history: {}", err);
}
}
}
tab::Command::EmptyTrash => {
return self.push_dialog(
DialogPage::EmptyTrash,