feat: options to not show changelog on app init

This commit is contained in:
MasterAcnolo
2026-10-07 10:25:29 +02:00
parent f0971ebccc
commit 6aa3a39819
4 changed files with 38 additions and 23 deletions

3
app/ipcHandlers.js Normal file → Executable file
View File

@@ -44,7 +44,8 @@ const FEATURE_WHITELIST = new Set([
"theme",
"createPlaylistFolders",
"notifySystem",
"enableHardwareAcceleration"
"enableHardwareAcceleration",
"showChanglogsAfterUpdate"
]);
/**

View File

@@ -16,5 +16,6 @@
"downloadSystem": true,
"notifySystem": true,
"enableHardwareAcceleration": true,
"showChanglogsAfterUpdate": true,
"theme": "dark"
}

View File

@@ -131,6 +131,14 @@
</div>
</div>
<div class="setting-item">
<input type="checkbox" data-key="showChanglogsAfterUpdate" id="showChanglogsAfterUpdate">
<div class="setting-info">
<span class="setting-title">Show Changelogs After Update</span>
<small>Display changelogs after each update.</small>
</div>
</div>
<div class="setting-item">
<input data-key="systemTray" id="systemTray" type="checkbox">
<div class="setting-info">

7
public/script/changelog.js Normal file → Executable file
View File

@@ -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);