mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-16 07:46:31 +00:00
Merge pull request #2556 from balena-io/fix-update-notification
fix(GUI): Fix update notification error
This commit is contained in:
commit
b7c4562b85
@ -79,7 +79,7 @@ exports.shouldCheckForUpdates = (options) => {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return Date.now() - options.lastSleptUpdateNotifier > units.daysToMilliseconds(this.UPDATE_NOTIFIER_SLEEP_DAYS)
|
return Date.now() - options.lastSleptUpdateNotifier > units.daysToMilliseconds(exports.UPDATE_NOTIFIER_SLEEP_DAYS)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -117,7 +117,7 @@ exports.notify = (version, options = {}) => {
|
|||||||
|
|
||||||
if (_.get(options, [ 'allowSleepUpdateCheck' ], true)) {
|
if (_.get(options, [ 'allowSleepUpdateCheck' ], true)) {
|
||||||
_.merge(dialogOptions, {
|
_.merge(dialogOptions, {
|
||||||
checkboxLabel: `Remind me again in ${this.UPDATE_NOTIFIER_SLEEP_DAYS} days`,
|
checkboxLabel: `Remind me again in ${exports.UPDATE_NOTIFIER_SLEEP_DAYS} days`,
|
||||||
checkboxChecked: false
|
checkboxChecked: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user