command/actions.rs: ask confirmation for delete
parent
f097593bed
commit
d1437ff275
|
@ -130,6 +130,7 @@ pub enum Action {
|
||||||
impl Action {
|
impl Action {
|
||||||
pub fn needs_confirmation(&self) -> bool {
|
pub fn needs_confirmation(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
|
Action::Listing(ListingAction::Delete) => true,
|
||||||
Action::Listing(_) => false,
|
Action::Listing(_) => false,
|
||||||
Action::ViewMailbox(_) => false,
|
Action::ViewMailbox(_) => false,
|
||||||
Action::Sort(_, _) => false,
|
Action::Sort(_, _) => false,
|
||||||
|
|
Loading…
Reference in New Issue