fix(download): redownload creates fresh queued task

This commit is contained in:
NimBold
2026-06-19 16:18:51 +03:30
parent 70581e8524
commit a2d7b689f3
2 changed files with 101 additions and 63 deletions
+7 -3
View File
@@ -372,11 +372,15 @@ export const DownloadTable: React.FC<DownloadTableProps> = ({ filter }) => {
</button>
)}
{['completed', 'failed', 'paused', 'retrying'].includes(contextItem.status) && (
{['completed', 'failed', 'paused'].includes(contextItem.status) && (
<button
onClick={() => {
onClick={async () => {
setContextMenu(null);
redownload(contextItem.id);
try {
await redownload(contextItem.id);
} catch (error) {
showInteractionError('Redownload failed', error);
}
}}
className="w-full text-left px-3 py-2 hover:bg-item-hover transition-colors"
>