From e051c4a9a225474ea1da2a0250969b84ffcb6f7a Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 12 Apr 2020 18:59:41 +0200 Subject: [PATCH] Only checked for updates if configured in options --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 6728f687..f7dddafb 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,7 @@ const { autoUpdater } = require("electron-updater"); const { setApplicationMenu } = require("./menu"); const { + autoUpdate, getEnabledPlugins, isAppVisible, store, @@ -149,8 +150,9 @@ app.on("activate", () => { app.on("ready", () => { setApplicationMenu(); mainWindow = createMainWindow(); - if (!is.dev()) { setUpTray(app, mainWindow); + + if (!is.dev() && autoUpdate()) { autoUpdater.checkForUpdatesAndNotify(); autoUpdater.on("update-available", () => { const dialogOpts = {