 
 IdleState = 'idle'
 CheckingState = 'checking'
-DownladingState = 'downloading'
+DownloadingState = 'downloading'
 UpdateAvailableState = 'update-available'
 NoUpdateAvailableState = 'no-update-available'
 UnsupportedState = 'unsupported'

      @setState(NoUpdateAvailableState)

    autoUpdater.on 'update-available', =>
      @setState(DownladingState)

    autoUpdater.on 'update-downloaded', (event, @releaseNotes, @releaseVersion) =>
      @setState(UpdateAvailableState)


    @check(hidePopups: true)
    setInterval =>
      if @state in [UpdateAvailableState, UnsupportedState]
        console.log "Skipping update check... update ready to install, or updater unavailable."
        return
      @check(hidePopups: true)
    , (1000 * 60 * 30)

    switch process.platform
      when 'win32'
