     @subscriptions.add atom.commands.add 'atom-workspace', 'about:view-release-notes', ->
       require('shell').openExternal('https://atom.io/releases')
 
+    availableVersion = localStorage.getItem(AvailableUpdateVersion)
+    localStorage.removeItem(AvailableUpdateVersion) if availableVersion is atom.getVersion()
+
     if atom.isReleasedVersion()
-      @subscriptions.add atom.commands.add 'atom-workspace', 'window:update-available', =>
-        @updateAvailable = true
+      @subscriptions.add atom.onUpdateAvailable ({releaseVersion}) =>
+        localStorage.setItem(AvailableUpdateVersion, releaseVersion)
         @showStatusBarIfNeeded()
 
   deactivate: ->


AboutView = null
StatusBarView = null

aboutURI = 'atom://about'


    @statusBar = statusBar
    @showStatusBarIfNeeded()

  isUpdateAvailable: ->
    availableVersion = localStorage.getItem(AvailableUpdateVersion)
    availableVersion? and availableVersion isnt atom.getVersion()

  showStatusBarIfNeeded: ->
    return unless @isUpdateAvailable() and @statusBar?

    StatusBarView ?= require './about-status-bar'

