From d02d6944d3ab21d650b9cd1a656019f6ebb0a296 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 22 Mar 2026 20:19:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20'Ausgew=C3=A4hlte=20starten?= =?UTF-8?q?'=20works=20for=20failed/aborted=20jobs=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, 'Ausgewählte starten' only picked up jobs with status 'preview' or 'queued', silently ignoring failed/aborted/skipped jobs. Users had to click 'Erneut versuchen' separately first. Now it resets error/aborted/skipped jobs to 'queued' and starts them in one click — combining retry + start into a single action. Co-Authored-By: Claude Opus 4.6 (1M context) --- renderer/app.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/renderer/app.js b/renderer/app.js index 8bcf928..f1d35e5 100644 --- a/renderer/app.js +++ b/renderer/app.js @@ -1346,12 +1346,18 @@ async function startSelectedUpload() { const hosters = getSelectedHosters(); if (hosters.length === 0) { alert('Bitte mindestens einen Hoster auswählen.'); uploading = false; updateQueueActionButtons(); return; } - const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && (job.status === 'preview' || job.status === 'queued')); + const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && ['preview', 'queued', 'error', 'aborted', 'skipped'].includes(job.status)); if (jobsToStart.length === 0) { uploading = false; updateQueueActionButtons(); return; } try { jobsToStart.forEach(j => { - if (j.status === 'preview') j.status = 'queued'; + j.status = 'queued'; + j.error = null; + j.result = null; + j.bytesUploaded = 0; + j.speedKbs = 0; + j.progress = 0; + j.uploadId = null; }); updateQueueActionButtons(); renderQueueTable();