Ingest: Laufnummer auch bei Abbruch oder Fehler speichern

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-05 08:11:44 +00:00
1 parent 1f63714b73
commit be6bd49da5
2 files changed
+11 -2

No files matched your search

+5 -1
View File
@@ -515,13 +515,17 @@ final class AppState: ObservableObject {
}
}
},
onSequence: { [weak self] next in
// runs on success, cancel and error – the numbering never starts over
Task { @MainActor [weak self] in self?.settings.ingest.startSequence = next }
},
progress: { [weak self] p in
Task { @MainActor [weak self] in
self?.tasks.update(taskID, done: p.done, total: p.total, detail: p.currentFile)
}
})
// PM: the sequence continues with the next number next time.
if settings.sequenceEnabled { self.settings.ingest.startSequence = result.nextSequence }
if settings.sequenceEnabled { self.settings.ingest.startSequence = max(self.settings.ingest.startSequence, result.nextSequence) }
// Eject right after copying – everything after this works on the copies only.
var ejectNote = ""