minifix(gui): Don't check for updates when in resin

This disabled Etcher checking for updates & showing update notifications
if running under resinOS with update locks enabled

Change-Type: patch
This commit is contained in:
Jonas Hermsmeier 2018-05-11 16:36:14 +02:00
parent 196f16b941
commit b8897e0193
No known key found for this signature in database
GPG Key ID: 1B870F801A0CEE9F

View File

@ -62,6 +62,10 @@ const currentWindow = electron.remote.getCurrentWindow()
* }
*/
exports.shouldCheckForUpdates = (options) => {
if (process.env.ELECTRON_RESIN_UPDATE_LOCK) {
return false
}
_.defaults(options, {
lastSleptUpdateNotifierVersion: options.currentVersion
})