mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-11-13 15:09:20 +01:00
feat: options to not show changelog on app init
This commit is contained in:
3
app/ipcHandlers.js
Normal file → Executable file
3
app/ipcHandlers.js
Normal file → Executable file
@@ -44,7 +44,8 @@ const FEATURE_WHITELIST = new Set([
|
|||||||
"theme",
|
"theme",
|
||||||
"createPlaylistFolders",
|
"createPlaylistFolders",
|
||||||
"notifySystem",
|
"notifySystem",
|
||||||
"enableHardwareAcceleration"
|
"enableHardwareAcceleration",
|
||||||
|
"showChanglogsAfterUpdate"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,5 +16,6 @@
|
|||||||
"downloadSystem": true,
|
"downloadSystem": true,
|
||||||
"notifySystem": true,
|
"notifySystem": true,
|
||||||
"enableHardwareAcceleration": true,
|
"enableHardwareAcceleration": true,
|
||||||
|
"showChanglogsAfterUpdate": true,
|
||||||
"theme": "dark"
|
"theme": "dark"
|
||||||
}
|
}
|
||||||
@@ -131,31 +131,39 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<input data-key="systemTray" id="systemTray" type="checkbox">
|
<input type="checkbox" data-key="showChanglogsAfterUpdate" id="showChanglogsAfterUpdate">
|
||||||
<div class="setting-info">
|
<div class="setting-info">
|
||||||
<span class="setting-title">System Tray</span>
|
<span class="setting-title">Show Changelogs After Update</span>
|
||||||
<small>Minimize app on close, in the System Tray. [EXPERIMENTAL]</small>
|
<small>Display changelogs after each update.</small>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <div class="setting-item">
|
<div class="setting-item">
|
||||||
<input type="checkbox" data-key="outputTitleCheck" id="outputTitleCheck">
|
<input data-key="systemTray" id="systemTray" type="checkbox">
|
||||||
<div class="setting-info">
|
<div class="setting-info">
|
||||||
<span class="setting-title">Output title (special chars)</span>
|
<span class="setting-title">System Tray</span>
|
||||||
<small>Check for unusual characters in output titles.</small>
|
<small>Minimize app on close, in the System Tray. [EXPERIMENTAL]</small>
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<div class="setting-item">
|
|
||||||
<input data-key="autoCheckInfo" id="autoCheckInfo" type="checkbox">
|
|
||||||
<div class="setting-info">
|
|
||||||
<span class="setting-title">Auto Fetch Info</span>
|
|
||||||
<small>Automatically fetch information for new downloads.</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="setting-item">
|
<!-- <div class="setting-item">
|
||||||
|
<input type="checkbox" data-key="outputTitleCheck" id="outputTitleCheck">
|
||||||
|
<div class="setting-info">
|
||||||
|
<span class="setting-title">Output title (special chars)</span>
|
||||||
|
<small>Check for unusual characters in output titles.</small>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<div class="setting-item">
|
||||||
|
<input data-key="autoCheckInfo" id="autoCheckInfo" type="checkbox">
|
||||||
|
<div class="setting-info">
|
||||||
|
<span class="setting-title">Auto Fetch Info</span>
|
||||||
|
<small>Automatically fetch information for new downloads.</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="setting-item">
|
||||||
<input type="checkbox" data-key="addMetadata" id="addMetadata">
|
<input type="checkbox" data-key="addMetadata" id="addMetadata">
|
||||||
<div class="setting-info">
|
<div class="setting-info">
|
||||||
<span class="setting-title">Add Metadata</span>
|
<span class="setting-title">Add Metadata</span>
|
||||||
|
|||||||
7
public/script/changelog.js
Normal file → Executable file
7
public/script/changelog.js
Normal file → Executable file
@@ -226,10 +226,15 @@ async function closeChangelog() {
|
|||||||
|
|
||||||
/** Loads changelog data and opens the modal when unread releases exist. */
|
/** Loads changelog data and opens the modal when unread releases exist. */
|
||||||
async function loadChangelog() {
|
async function loadChangelog() {
|
||||||
|
|
||||||
|
const features = await window.electronAPI.getFeatures();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
changelogData = await window.electronAPI.getChangelog();
|
changelogData = await window.electronAPI.getChangelog();
|
||||||
if (!changelogData.error && changelogData.hasUnread) {
|
|
||||||
|
if (!changelogData.error && changelogData.hasUnread && features.showChanglogsAfterUpdate === true) {
|
||||||
openChangelog(changelogData.unreadReleases);
|
openChangelog(changelogData.unreadReleases);
|
||||||
|
window.electronAPI.logInfo("Showing Changelog");
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Unable to load changelog:", error);
|
console.error("Unable to load changelog:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user