Fix: Refactor conditional statements for starting Discord RPC and Auto Update

This commit is contained in:
MasterAcnolo
2026-02-17 21:49:52 +01:00
parent cc5bde5b48
commit 19b3f8b947

View File

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