From 69f81b09200ae322139289ca06852e01c0c89b26 Mon Sep 17 00:00:00 2001 From: qkzk Date: Sun, 12 Nov 2023 22:54:54 +0100 Subject: BUG seek: trash --- src/event_exec.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/event_exec.rs') diff --git a/src/event_exec.rs b/src/event_exec.rs index 95e95e7..55d0134 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -858,6 +858,7 @@ impl EventAction { Self::toggle_flag(status)?; } + status.trash.update()?; for flagged in status.flagged.content.iter() { status.trash.trash(flagged)?; } @@ -868,6 +869,7 @@ impl EventAction { /// Ask the user if he wants to empty the trash. /// It requires a confimation before doing anything pub fn trash_empty(status: &mut Status) -> Result<()> { + status.trash.update()?; status .selected() .set_mode(Mode::NeedConfirmation(NeedConfirmation::EmptyTrash)); -- cgit v1.2.3