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

@@ -1,7 +1,9 @@
const { Notification, shell } = require("electron");
const { iconPaths } = require("./path.helpers");
function notifyDownloadFinished(folder) {
function notifyDownloadFinished(folder, notifyEnabled = true) {
if (!notifyEnabled) return;
const notif = new Notification({
title: "Freedom Loader",
body: "Your download is complete, click here to open it.",