Add option to enable/disable auto updater

This commit is contained in:
Agampreet Singh
2023-06-12 00:49:47 +05:30
parent d2ed102ccc
commit 0ba2721ea3
2 changed files with 33 additions and 2 deletions

View File

@@ -334,7 +334,9 @@ app.on("ready", function () {
console.log(response);
});
});
autoUpdater.checkForUpdatesAndNotify();
if (getValue("autoupdater") === "true") {
autoUpdater.checkForUpdatesAndNotify();
}
if (getValue("discordrpcstatus") === "true") {
loginToRPC();
setActivity(`Opening Microsoft 365...`);