mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
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:
parent
196f16b941
commit
b8897e0193
@ -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