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:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user