mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
setting: Refactor auto-update setting.
This commit is contained in:
@@ -30,10 +30,9 @@ function appUpdater(updateFromMenu = false) {
|
|||||||
autoUpdater.logger = log;
|
autoUpdater.logger = log;
|
||||||
|
|
||||||
// Handle auto updates for beta/pre releases
|
// Handle auto updates for beta/pre releases
|
||||||
const isAutoUpdate = ConfigUtil.getConfigItem('autoUpdate');
|
|
||||||
const isBetaUpdate = ConfigUtil.getConfigItem('betaUpdate');
|
const isBetaUpdate = ConfigUtil.getConfigItem('betaUpdate');
|
||||||
|
|
||||||
autoUpdater.allowPrerelease = (isAutoUpdate && isBetaUpdate) || false;
|
autoUpdater.allowPrerelease = isBetaUpdate || false;
|
||||||
|
|
||||||
const eventsListenerRemove = ['update-available', 'update-not-available'];
|
const eventsListenerRemove = ['update-available', 'update-not-available'];
|
||||||
autoUpdater.on('update-available', info => {
|
autoUpdater.on('update-available', info => {
|
||||||
|
Reference in New Issue
Block a user