Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: add toast notification for already active download attempts

Tonhof23214fe4d74
diff --git a/src/routes/hotmart/+page.svelte b/src/routes/hotmart/+page.svelte
index c86bbfda..e29272ed 100644
--- a/src/routes/hotmart/+page.svelte
+++ b/src/routes/hotmart/+page.svelte
@@ -146,7 +146,11 @@
async function downloadCourse(course: Course) {
const status = getCourseDownloadStatus(course.id);
- if (status === "downloading" || status === "complete") return;
+ if (status === "downloading") {
+ showToast("info", $t("toast.download_already_active"));
+ return;
+ }
+ if (status === "complete") return;
const selected = await open({ directory: true, title: $t("hotmart.choose_folder") });
if (!selected) return;