Feat: Implement notification feature for download completion

This commit is contained in:
MasterAcnolo
2026-04-13 20:39:23 +02:00
parent 83ac76381a
commit 40bea35286
5 changed files with 14 additions and 7 deletions

View File

@@ -44,8 +44,11 @@ form.addEventListener("submit", async (e) => {
return;
}
// Download successful
window.showSuccess("Download completed!");
// Download successful - check if notifications are enabled
const features = await window.electronAPI.getFeatures();
if (features.notifySystem) {
window.showSuccess("Download completed!");
}
} catch (err) {
if (!isDownloading && !userStoppedDownload) {