From e48721b1d967c3efc08127cbdfa7efc3e321ecbd Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Wed, 29 Jun 2022 16:58:24 +0100 Subject: Fix toggle for pre-release updates on Ubuntu (#393) Fixes #391 --- src/electron/ipc-api/autoUpdate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/electron') diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index fb91d3515..262d396ec 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts @@ -1,6 +1,5 @@ import { ipcMain, BrowserWindow } from 'electron'; import { autoUpdater } from 'electron-updater'; -import { isMac, isWindows } from '../../environment'; import { appEvents } from '../..'; const debug = require('../../preload-safe-debug')('Ferdium:ipcApi:autoUpdate'); @@ -11,7 +10,7 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { if (!enableUpdate) { autoUpdater.autoInstallOnAppQuit = false; autoUpdater.autoDownload = false; - } else if (isMac || isWindows || process.env.APPIMAGE) { + } else { ipcMain.on('autoUpdate', (event, args) => { if (enableUpdate) { try { -- cgit v1.2.3-54-g00ecf