From 6aa3a398199e7a05a41c36d37e15d649c416b5c9 Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Wed, 7 Oct 2026 10:25:29 +0200 Subject: [PATCH] feat: options to not show changelog on app init --- app/ipcHandlers.js | 3 ++- config/config.default.json | 1 + public/index.html | 50 ++++++++++++++++++++++---------------- public/script/changelog.js | 7 +++++- 4 files changed, 38 insertions(+), 23 deletions(-) mode change 100644 => 100755 app/ipcHandlers.js mode change 100644 => 100755 public/script/changelog.js diff --git a/app/ipcHandlers.js b/app/ipcHandlers.js old mode 100644 new mode 100755 index 5e9f3e8..06c94de --- a/app/ipcHandlers.js +++ b/app/ipcHandlers.js @@ -44,7 +44,8 @@ const FEATURE_WHITELIST = new Set([ "theme", "createPlaylistFolders", "notifySystem", - "enableHardwareAcceleration" + "enableHardwareAcceleration", + "showChanglogsAfterUpdate" ]); /** diff --git a/config/config.default.json b/config/config.default.json index c620f50..7fc2998 100644 --- a/config/config.default.json +++ b/config/config.default.json @@ -16,5 +16,6 @@ "downloadSystem": true, "notifySystem": true, "enableHardwareAcceleration": true, + "showChanglogsAfterUpdate": true, "theme": "dark" } \ No newline at end of file diff --git a/public/index.html b/public/index.html index fbdeb82..1d50e1d 100644 --- a/public/index.html +++ b/public/index.html @@ -131,31 +131,39 @@ -
- -
- System Tray - Minimize app on close, in the System Tray. [EXPERIMENTAL] -
+
+ +
+ Show Changelogs After Update + Display changelogs after each update.
+
- - -
- -
- Auto Fetch Info - Automatically fetch information for new downloads. -
+
+ +
+ System Tray + Minimize app on close, in the System Tray. [EXPERIMENTAL]
+
-
+ + +
+ +
+ Auto Fetch Info + Automatically fetch information for new downloads. +
+
+ +
Add Metadata diff --git a/public/script/changelog.js b/public/script/changelog.js old mode 100644 new mode 100755 index a9ec6bb..fd88401 --- a/public/script/changelog.js +++ b/public/script/changelog.js @@ -226,10 +226,15 @@ async function closeChangelog() { /** Loads changelog data and opens the modal when unread releases exist. */ async function loadChangelog() { + + const features = await window.electronAPI.getFeatures(); + try { changelogData = await window.electronAPI.getChangelog(); - if (!changelogData.error && changelogData.hasUnread) { + + if (!changelogData.error && changelogData.hasUnread && features.showChanglogsAfterUpdate === true) { openChangelog(changelogData.unreadReleases); + window.electronAPI.logInfo("Showing Changelog"); } } catch (error) { console.error("Unable to load changelog:", error);