mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-16 07:46:31 +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) => {
|
exports.shouldCheckForUpdates = (options) => {
|
||||||
|
if (process.env.ELECTRON_RESIN_UPDATE_LOCK) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
_.defaults(options, {
|
_.defaults(options, {
|
||||||
lastSleptUpdateNotifierVersion: options.currentVersion
|
lastSleptUpdateNotifierVersion: options.currentVersion
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user