T-013: 'Löschen' für geladene/fehlerhafte Jobs (Verzeichnis+Queue-Eintrag), Worker-Guards gegen Löschung während laufendem Download

This commit is contained in:
2026-11-06 19:58:56 +01:00
parent 7095f06873
commit 255a0372ca
4 changed files with 76 additions and 23 deletions

View File

@ -35,5 +35,6 @@ export interface DlItem {
export const downloadList = () => invoke<DlItem[]>('download_list')
export const downloadEnqueue = (asin: string) => invoke<DlItem>('download_enqueue', { asin })
export const downloadCancel = (asin: string) => invoke<DlItem>('download_cancel', { asin })
export const downloadDelete = (asin: string) => invoke<void>('download_delete', { asin })
export const onDownloadUpdate = (cb: (it: DlItem) => void) =>
listen<DlItem>('download-update', (ev) => cb(ev.payload))