Fix deleting a camera with no video duplicating dialog
This commit is contained in:
parent
438de38202
commit
5a567da652
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue