mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-11-13 15:09:20 +01:00
refactor: remove autoUpdate feature from configuration and UI
This commit is contained in:
@@ -225,7 +225,6 @@ Freedom Loader can be configured either through the settings panel in the UI or
|
|||||||
### Available Options
|
### Available Options
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"autoUpdate": true,
|
|
||||||
"systemTray": true,
|
"systemTray": true,
|
||||||
"discordRPC": true,
|
"discordRPC": true,
|
||||||
"autoCheckInfo": true,
|
"autoCheckInfo": true,
|
||||||
@@ -250,7 +249,6 @@ Freedom Loader can be configured either through the settings panel in the UI or
|
|||||||
|
|
||||||
| Option | Type | Default | Description |
|
| Option | Type | Default | Description |
|
||||||
|------------------------------|---------|----------|------------------------------------------------------------|
|
|------------------------------|---------|----------|------------------------------------------------------------|
|
||||||
| `autoUpdate` | boolean | `true` | Enable automatic application updates |
|
|
||||||
| `systemTray` | boolean | `false` | Allow app to minimize on close |
|
| `systemTray` | boolean | `false` | Allow app to minimize on close |
|
||||||
| `discordRPC` | boolean | `true` | Enable Discord Rich Presence integration |
|
| `discordRPC` | boolean | `true` | Enable Discord Rich Presence integration |
|
||||||
| `autoCheckInfo` | boolean | `true` | Automatically fetch video information on URL paste |
|
| `autoCheckInfo` | boolean | `true` | Automatically fetch video information on URL paste |
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ const { getChangelog, markChangelogSeen } = require("./changelogManager");
|
|||||||
* Acts as a basic validation layer for IPC "set-feature".
|
* Acts as a basic validation layer for IPC "set-feature".
|
||||||
*/
|
*/
|
||||||
const FEATURE_WHITELIST = new Set([
|
const FEATURE_WHITELIST = new Set([
|
||||||
"autoUpdate",
|
|
||||||
"systemTray",
|
"systemTray",
|
||||||
"discordRPC",
|
"discordRPC",
|
||||||
"autoCheckInfo",
|
"autoCheckInfo",
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"autoUpdate": true,
|
|
||||||
"systemTray": false,
|
"systemTray": false,
|
||||||
"discordRPC": true,
|
"discordRPC": true,
|
||||||
"autoCheckInfo": true,
|
"autoCheckInfo": true,
|
||||||
|
|||||||
2
main.js
2
main.js
@@ -173,7 +173,7 @@ app.whenReady().then(async () => {
|
|||||||
|
|
||||||
if (configFeatures.discordRPC) startRPC();
|
if (configFeatures.discordRPC) startRPC();
|
||||||
|
|
||||||
if (configFeatures.autoUpdate) initAutoUpdater(getMainWindow());
|
initAutoUpdater(getMainWindow());
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error("Boot error:", err);
|
logger.error("Boot error:", err);
|
||||||
|
|||||||
@@ -123,14 +123,6 @@
|
|||||||
<details class="settings-section">
|
<details class="settings-section">
|
||||||
<summary>Advanced Settings</summary>
|
<summary>Advanced Settings</summary>
|
||||||
|
|
||||||
<div class="setting-item">
|
|
||||||
<input type="checkbox" data-key="autoUpdate" id="autoUpdate">
|
|
||||||
<div class="setting-info">
|
|
||||||
<span class="setting-title">Auto Update</span>
|
|
||||||
<small>Enable automatic app updates.</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<input type="checkbox" data-key="showChanglogsAfterUpdate" id="showChanglogsAfterUpdate">
|
<input type="checkbox" data-key="showChanglogsAfterUpdate" id="showChanglogsAfterUpdate">
|
||||||
<div class="setting-info">
|
<div class="setting-info">
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ function buildYtDlpArgs({url, audioOnly, quality, outputFolder, isPlaylist}) {
|
|||||||
|
|
||||||
logger.info("--- CONFIGURATION ---");
|
logger.info("--- CONFIGURATION ---");
|
||||||
|
|
||||||
logger.info(`CONFIG autoUpdate: ${configFeatures.autoUpdate}`);
|
|
||||||
logger.info(`CONFIG discordRPC: ${configFeatures.discordRPC}`);
|
logger.info(`CONFIG discordRPC: ${configFeatures.discordRPC}`);
|
||||||
logger.info(`CONFIG autoCheckInfo: ${configFeatures.autoCheckInfo}`);
|
logger.info(`CONFIG autoCheckInfo: ${configFeatures.autoCheckInfo}`);
|
||||||
logger.info(`CONFIG keepPlaylistOrder: ${configFeatures.keepPlaylistOrder}`);
|
logger.info(`CONFIG keepPlaylistOrder: ${configFeatures.keepPlaylistOrder}`);
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ jest.mock("../../server/helpers/path.helpers.js", () => ({
|
|||||||
|
|
||||||
jest.mock("../../config.js", () => ({
|
jest.mock("../../config.js", () => ({
|
||||||
configFeatures: {
|
configFeatures: {
|
||||||
autoUpdate: false,
|
|
||||||
discordRPC: false,
|
discordRPC: false,
|
||||||
customTopBar: false,
|
customTopBar: false,
|
||||||
autoCheckInfo: false,
|
autoCheckInfo: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user