tabbing on finished entrie in view cams now leads to add cam window with normal save options
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user