diff --git a/server/src/cmds/config/cameras.rs b/server/src/cmds/config/cameras.rs index 28d0793..00bb6f6 100644 --- a/server/src/cmds/config/cameras.rs +++ b/server/src/cmds/config/cameras.rs @@ -343,7 +343,10 @@ fn press_delete(siv: &mut Cursive, db: &Arc, id: i32, name: String )) .button("Delete", { let db = db.clone(); - move |s| actually_delete(s, &db, id) + move |s| { + s.pop_layer(); + actually_delete(s, &db, id); + } }) } .title("Delete camera")