command/actions.rs: ask confirmation for delete

pull/144/head
Manos Pitsidianakis 3 years ago
parent f097593bed
commit d1437ff275
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -130,6 +130,7 @@ pub enum Action {
impl Action {
pub fn needs_confirmation(&self) -> bool {
match self {
Action::Listing(ListingAction::Delete) => true,
Action::Listing(_) => false,
Action::ViewMailbox(_) => false,
Action::Sort(_, _) => false,

Loading…
Cancel
Save