Erweiterungen

This commit is contained in:
Sven committed 2024-03-06 11:44:23 +01:00
1 parent 8c906d6bc2
commit eb2ffab6cd
5 files changed
+13 -5

No files matched your search

+4
View File
@@ -213,6 +213,8 @@ class _TaskListPageState extends State<TaskListPage> {
}
void _processTask(TaskInfo taskInfo) {
Util.logInfo("Process of Task \"${taskInfo.task.sId} started");
switch(taskInfo.task.type) {
case 2:
_processSignature(taskInfo);
@@ -390,6 +392,8 @@ class _TaskListPageState extends State<TaskListPage> {
}
_finishTaskProcessing(TaskInfo taskInfo) async {
Util.logInfo('Task ${taskInfo.task.sId} finished');
await MyApp.isarInstance.writeTxn(() async {
await MyApp.isarInstance.taskInfos.put(taskInfo);
});