Add button to clear recents

This commit is contained in:
Will Sheehan 2026-04-25 00:00:29 -07:00
parent b3af8bf211
commit accf5b2ba6
3 changed files with 34 additions and 0 deletions

View file

@ -4588,6 +4588,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,