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:
1 parent
b94e8f252a
commit
10b3a647e7
4 files changed
+14
-5
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user