Job-Identifikation auf externalId umstellen und Tour-State persistieren

- Job-Löschung und -Anzeige nutzen externalId statt interner id
- RefreshBadgesMessage korrekt instanziieren
- Tour-State beim Abschluss in Job.tours zurückschreiben und persistieren
- Version auf 352 erhöht

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
SvenandClaude Opus 4.8 committed 2026-05-29 08:45:50 +02:00
1 parent b94e8f252a
commit 10b3a647e7
4 files changed
+14 -5

No files matched your search

+7
View File
@@ -564,6 +564,13 @@ class _TaskListPageState extends State<TaskListPage> with ProducerMixin {
widget.tour.state = Constants.stateFinishedNotConfirmed;
final updatedTours = widget.job.tours;
final tourIdx = updatedTours.indexWhere((t) => t.id == widget.tour.id);
if (tourIdx >= 0) {
updatedTours[tourIdx] = widget.tour;
widget.job.tours = updatedTours;
}
final jobBox = MyApp.objectBoxStore.box<Job>();
jobBox.put(widget.job);