From 19b3f8b94751b1b9b6118238655cff009879e19f Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:49:52 +0100 Subject: [PATCH] Fix: Refactor conditional statements for starting Discord RPC and Auto Update --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 609e4e2..b218ea1 100644 --- a/main.js +++ b/main.js @@ -259,10 +259,11 @@ app.whenReady().then(async () => { }); - configFeatures.discordRPC ? startRPC() : ""; // Discord RPC + if (configFeatures.discordRPC) startRPC(); // Discord RPC await createMainWindow(); - configFeatures.autoUpdate ? AutoUpdater(mainWindow) : ""; // Auto Update + + if (configFeatures.autoUpdate) AutoUpdater(mainWindow); // Auto Update } catch (err) { logger.error("Window or Server error :", err);