Add button to clear recents
This commit is contained in:
parent
b3af8bf211
commit
accf5b2ba6
3 changed files with 34 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue