mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
Allow nightly releases to auto-update
This change removes a bad version check which prevented nightly releases to be considered for auto-update checks. The fix is to only skip auto-updates when using a build with a version containing `-dev`. Fixes #17885
This commit is contained in:
@@ -94,7 +94,7 @@ class AutoUpdateManager
|
||||
scheduleUpdateCheck: ->
|
||||
# Only schedule update check periodically if running in release version and
|
||||
# and there is no existing scheduled update check.
|
||||
unless /\w{7}/.test(@version) or @checkForUpdatesIntervalID
|
||||
unless /-dev/.test(@version) or @checkForUpdatesIntervalID
|
||||
checkForUpdates = => @check(hidePopups: true)
|
||||
fourHours = 1000 * 60 * 60 * 4
|
||||
@checkForUpdatesIntervalID = setInterval(checkForUpdates, fourHours)
|
||||
|
||||
Reference in New Issue
Block a user