Add setting to disable auto update

This commit is contained in:
jeffvli 2023-03-31 05:42:48 -07:00
parent 6ccef6e515
commit 293d8ec584
5 changed files with 53 additions and 5 deletions

View file

@ -295,9 +295,10 @@ const createWindow = async () => {
return { action: 'deny' };
});
// Remove this if your app does not use auto updates
// eslint-disable-next-line
new AppUpdater();
if (store.get('disable_auto_updates') !== true) {
// eslint-disable-next-line
new AppUpdater();
}
};
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService');