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 toast notifications for download preparation and error handling
Tonho0d0822b91e21
diff --git a/src/routes/hotmart/+page.svelte b/src/routes/hotmart/+page.svelteindex 09f1dbe1..bddd3060 100644--- a/src/routes/hotmart/+page.svelte+++ b/src/routes/hotmart/+page.svelte@@ -2,6 +2,7 @@import { invoke } from "@tauri-apps/api/core";import { open } from "@tauri-apps/plugin-dialog";import CourseCard from "$components/hotmart/CourseCard.svelte";+ import { showToast } from "$lib/stores/toast-store.svelte";type Course = {id: number;@@ -143,9 +144,10 @@courseJson: JSON.stringify(course),outputDir: selected,});+ showToast("info", "Preparando download...");} catch (e: any) {const msg = typeof e === "string" ? e : e.message ?? "Erro ao iniciar download";- console.error(msg);+ showToast("error", msg);}}