diff --git a/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt b/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt index e8953de..2b146bf 100644 --- a/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt +++ b/desktop/app/src/main/kotlin/com/shonar/desktop/DesktopState.kt @@ -842,10 +842,17 @@ class DesktopState(private val appDir: File = defaultAppDir()) { .orEmpty() d.jobs = jobs jobLabel(jobs)?.let { d.busy = it } + // Mirror live progress onto the library row (same as the + // pump + reprocess paths) so leaving the detail screen + // doesn't make the job look dead. + setLive(d.file.name, jobProgress(jobs)) + rescanStatuses() _detail.value = d.copy() val t = jobs.firstOrNull { it.jobType == "transcribe" }?.status if (t == null || t in TERMINAL) break } + setLive(d.file.name, null) + rescanStatuses() val failed = d.jobs.firstOrNull { it.jobType == "transcribe" && it.status == "failed" } if (failed != null) { d.busy = null