From c6699005dcefaf1ffb0476e4904bac4e7a8b67f4 Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Wed, 7 Feb 2024 22:45:51 -0300 Subject: [PATCH] [Fix/UX] Check config before calling autoupdater (#3530) Check config before calling autoupdater --- src/backend/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/main.ts b/src/backend/main.ts index 9a40c65a97..1dd8549ff5 100644 --- a/src/backend/main.ts +++ b/src/backend/main.ts @@ -201,7 +201,7 @@ async function initializeWindow(): Promise { }, 5000) } - GlobalConfig.get() + const globalConf = GlobalConfig.get().getSettings() mainWindow.setIcon(icon) app.commandLine.appendSwitch('enable-spatial-navigation') @@ -253,7 +253,9 @@ async function initializeWindow(): Promise { } else { Menu.setApplicationMenu(null) mainWindow.loadURL(`file://${path.join(publicDir, '../build/index.html')}`) - autoUpdater.checkForUpdates() + if (globalConf.checkForUpdatesOnStartup) { + autoUpdater.checkForUpdates() + } } // Changelog links workaround