Added missing commit

This commit is contained in:
Brage Skjønborg 2026-01-22 00:07:04 +01:00
parent 807b39f24d
commit 49bf4ad36d

View File

@ -41,6 +41,11 @@ class CollectProjection(val events: List<Event>) {
coverDownloadTaskStatus
)
fun canStoreAutomatically(): Boolean {
val manualEvent = events.filterIsInstance<StartProcessingEvent>().lastOrNull()
return manualEvent?.data?.flow != StartFlow.Manual
}
private fun projectUseFile(): File? {
val added = events.filterIsInstance<FileAddedEvent>().firstOrNull()?.data
val startEvent = projectStartedWith()