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

@@ -97,13 +97,13 @@
</div>
</div>
<!-- <div class="setting-item">
<div class="setting-item">
<input type="checkbox" data-key="notifySystem" id="notifySystem">
<div class="setting-info">
<span class="setting-title">Notification at the end</span>
<small>Notify when a download finishes.</small>
</div>
</div> -->
</div>
<div class="setting-item">
<input type="checkbox" data-key="autoCheckInfo" id="autoCheckInfo">

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) {