Separate pause/resume buttons, fix hybrid extraction during pause

- Pause button is now one-way (orange glow when paused, disabled when
  already paused). Start button resumes from pause.
- Fix hybrid extraction attempting incomplete multi-part archives when
  paused: disk-fallback now blocks any non-terminal item status, not
  just downloading/validating/integrity_check.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe
2026-03-02 19:22:58 +01:00
co-authored by Claude Opus 4.6
parent e6c17393fb
commit 549328893e
4 changed files with 22 additions and 13 deletions
+1 -1
View File
@@ -4786,7 +4786,7 @@ export class DownloadManager extends EventEmitter {
}
const anyActivelyProcessing = missingParts.some((part) => {
const status = pendingItemStatus.get(pathKey(part));
return status === "downloading" || status === "validating" || status === "integrity_check";
return status !== undefined && status !== "failed" && status !== "cancelled";
});
if (anyActivelyProcessing) {
continue;