tabbing on finished entrie in view cams now leads to add cam window with normal save options

This commit is contained in:
nico
2024-05-01 00:08:10 +02:00
parent 647532107b
commit e8304bffc2
6 changed files with 75 additions and 48 deletions

View File

@@ -48,7 +48,7 @@ class DBHelper {
// checks if the camid var from before is empty to avoid double entries
if (existingCID.isNotEmpty) {
//throw Exception("Eintrag existiert schon");
updatePlace(place);
return;
}
@@ -62,6 +62,17 @@ class DBHelper {
);
}
Future<void> updatePlace(Map<String, dynamic> place) async {
var placeDBClient = await placeDB;
await placeDBClient.update(
'place',
place,
where: "CID = ?",
whereArgs: [place['CID']]
);
}
// function to update the sent value
Future<void> updateSent() async {
var placeDBClient = await placeDB;