 
           if msg?
             log.warn msg
-          statusBarTileView?.setStatus(status)
-          statusBarTileView?.setTitle(title)
+          statusBarIcon?.setStatus(status)
+          statusBarIcon?.setTitle(title)
 
         else
-          statusBarTileView?.setStatus()
+          statusBarIcon?.setStatus()
           today = new Date()
-          statusBarTileView?.setTitle('Last heartbeat sent ' + formatDate(today))
+          statusBarIcon?.setTitle('Last heartbeat sent ' + formatDate(today))
       )
       lastHeartbeat = time
       lastFile = file.path


installCLI = (callback) ->
  log.debug 'Downloading wakatime-cli...'
  statusBarTileView?.setStatus('downloading wakatime-cli...')
  url = 'https://github.com/wakatime/wakatime/archive/master.zip'
  zipFile = __dirname + path.sep + 'wakatime-master.zip'
  downloadFile(url, zipFile, ->

packageVersion = null
lastHeartbeat = 0
lastFile = ''
statusBarIcon = null
pluginReady = false

# package dependencies
