Fix deleting a camera with no video duplicating dialog

This commit is contained in:
Skye 2023-07-01 14:31:13 -04:00 committed by Scott Lamb
parent 438de38202
commit 5a567da652
1 changed files with 4 additions and 1 deletions

View File

@ -343,7 +343,10 @@ fn press_delete(siv: &mut Cursive, db: &Arc<db::Database>, 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")