Desktop: upload-path transcribe mirrors live progress to library rows
This commit is contained in:
parent
5b39c1de4f
commit
7f447188b5
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue