mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Feat: Implement notification feature for download completion
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user