Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat: add removeDownload function to manage download items
Tonho981a6c2e1ce5
diff --git a/src/lib/stores/download-store.svelte.ts b/src/lib/stores/download-store.svelte.tsindex 0f10b1f9..4937d834 100644--- a/src/lib/stores/download-store.svelte.ts+++ b/src/lib/stores/download-store.svelte.ts@@ -137,6 +137,13 @@ export function upsertGenericProgress(downloads = new Map(downloads);}+export function removeDownload(id: number) {+ if (downloads.has(id)) {+ downloads.delete(id);+ downloads = new Map(downloads);+ }+}+export function markGenericComplete(id: number, success: boolean, error?: string, filePath?: string) {const item = downloads.get(id);if (!item || item.kind !== "generic") return;