diff --git a/src/main.ts b/src/main.ts index 59c9696..f8253ee 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2895,6 +2895,8 @@ async function processOneQueueItem(item: QueueItem): Promise { } finally { activeDownloads.delete(item.id); cancelledItemIds.delete(item.id); + // Release any filenames claimed during this download (prevents stale claims blocking re-downloads) + claimedFilenames.clear(); } } diff --git a/src/renderer-queue.ts b/src/renderer-queue.ts index 71016ed..1fbee86 100644 --- a/src/renderer-queue.ts +++ b/src/renderer-queue.ts @@ -221,7 +221,10 @@ function initQueueDragDrop(): void { if (itemId) { const item = queue.find(i => i.id === itemId); if (!item || item.status !== 'pending') { - e.preventDefault(); + if (e.dataTransfer) { + e.dataTransfer.effectAllowed = 'none'; + e.dataTransfer.clearData(); + } return; } }