fix: Trash icons should show the trash menu

Closes: #593

Trash bins currently show an incorrect menu with invalid actions such as
opening the bin in a terminal. The menu also doesn't have an entry for
emptying the trash.
This commit is contained in:
Josh Megnauth 2024-10-14 03:04:03 -04:00
parent 3767a61f2a
commit 0548883c13
No known key found for this signature in database
GPG key ID: 70813183462EFAD3
2 changed files with 13 additions and 1 deletions

View file

@ -96,6 +96,7 @@ pub enum Action {
DesktopViewOptions,
EditHistory,
EditLocation,
EmptyTrash,
ExtractHere,
Gallery,
HistoryNext,
@ -155,6 +156,7 @@ impl Action {
Action::EditLocation => {
Message::TabMessage(entity_opt, tab::Message::EditLocationEnable)
}
Action::EmptyTrash => Message::TabMessage(None, tab::Message::EmptyTrash),
Action::ExtractHere => Message::ExtractHere(entity_opt),
Action::Gallery => Message::TabMessage(entity_opt, tab::Message::GalleryToggle),
Action::HistoryNext => Message::TabMessage(entity_opt, tab::Message::GoNext),