address comments

This commit is contained in:
Chen Shen
2015-12-15 14:04:09 -08:00
parent ea3736aa70
commit 6c0643b4fa
3 changed files with 12 additions and 7 deletions

View File

@@ -50,13 +50,13 @@ class AutoUpdateManager
@setState(UpdateAvailableState)
@emitUpdateAvailableEvent(@getWindows()...)
@config.onDidChange 'core.enableAutoUpdate', ({newValue}) =>
@config.onDidChange 'core.automaticallyUpdate', ({newValue}) =>
if newValue
@scheduleUpdateCheck()
else
@cancelScheduledUpdateCheck()
@scheduleUpdateCheck() if @config.get 'core.enableAutoUpdate'
@scheduleUpdateCheck() if @config.get 'core.automaticallyUpdate'
switch process.platform
when 'win32'