Merge pull request #2332 from resin-io/disable-update-notify

minifix(gui): Don't check for updates when in resin
This commit is contained in:
Jonas Hermsmeier 2018-05-11 20:03:45 +02:00 committed by GitHub
commit df396966b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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