mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Ability to stop auto update
This commit is contained in:
committed by
Junyoung Choi
parent
7d4d176bf4
commit
d78f6b7aba
@@ -4,6 +4,7 @@ const Menu = electron.Menu
|
||||
const ipc = electron.ipcMain
|
||||
const GhReleases = require('electron-gh-releases')
|
||||
const { isPackaged } = app
|
||||
const electronConfig = new (require('electron-config'))()
|
||||
// electron.crashReporter.start()
|
||||
const singleInstance = app.requestSingleInstanceLock()
|
||||
|
||||
@@ -40,6 +41,7 @@ function checkUpdate () {
|
||||
console.log('Updates are disabled in Development mode, see main-app.js')
|
||||
return true
|
||||
}
|
||||
if (!electronConfig.get('autoUpdateEnabled', true)) return
|
||||
if (process.platform === 'linux' || isUpdateReady) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user