mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-15 23:36:32 +00:00
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:
commit
df396966b0
@ -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
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user