command/actions.rs: ask confirmation for delete

master
Manos Pitsidianakis 2021-09-03 14:10:58 +03:00
parent f097593bed
commit d1437ff275
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 0 deletions

View File

@ -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,