const {CompositeDisposable} = require('atom')
const UpdateManager = require('./update-manager')
const About = require('./about')
const StatusBarView = require('./components/about-status-bar')
let updateManager

// The local storage key for the available update version.
const AvailableUpdateVersion = 'about:version-available'
const AboutURI = 'atom://about'

module.exports = {
  activate () {
    this.subscriptions = new CompositeDisposable()

    this.createModel()

    let availableVersion = window.localStorage.getItem(AvailableUpdateVersion)
    if (atom.getReleaseChannel() === 'dev' || availableVersion === atom.getVersion()) {
      window.localStorage.removeItem(AvailableUpdateVersion)
    }

    this.subscriptions.add(updateManager.onDidChange(() => {
      if (updateManager.getState() === UpdateManager.State.UpdateAvailableToInstall) {
        window.localStorage.setItem(AvailableUpdateVersion, updateManager.getAvailableVersion())
        this.showStatusBarIfNeeded()
      }
    }))
  },

  deactivate () {
    this.model.destroy()
    if (this.statusBarTile) this.statusBarTile.destroy()

    if (updateManager) {
      updateManager.dispose()
      updateManager = undefined
    }
  },

  consumeStatusBar (statusBar) {
    this.statusBar = statusBar
    this.showStatusBarIfNeeded()
  },

  deserializeAboutView (state) {
    if (!this.model) {
      this.createModel()
    }

    return this.model.deserialize(state)
  },

  createModel () {
    updateManager = updateManager || new UpdateManager()

    this.model = new About({
      uri: AboutURI,
      currentVersion: atom.getVersion(),
      updateManager: updateManager
    })
  },

  isUpdateAvailable () {
    let availableVersion = window.localStorage.getItem(AvailableUpdateVersion)
    return availableVersion && availableVersion !== atom.getVersion()
  },

  showStatusBarIfNeeded () {
    if (this.isUpdateAvailable() && this.statusBar) {
      let statusBarView = new StatusBarView()

      if (this.statusBarTile) {
        this.statusBarTile.destroy()
      }

      this.statusBarTile = this.statusBar.addRightTile({
        item: statusBarView,
        priority: -100
      })

      return this.statusBarTile
    }
  }
}

@@ -641,61 +641,30 @@
     
-window.localStorage.removeItem(AvailableUpdateVersion
+this.clearUpdateState(
 )%0A  
@@ -965,16 +965,154 @@
 %0A    %7D))
+%0A%0A    this.subscriptions.add(atom.commands.add('atom-workspace', 'about:clear-update-state', () =%3E %7B%0A      this.clearUpdateState()%0A    %7D))
 %0A  %7D,%0A%0A 
@@ -1298,16 +1298,16 @@
 defined%0A
-
     %7D%0A  
@@ -1310,16 +1310,105 @@
 %7D%0A  %7D,%0A%0A
+  clearUpdateState () %7B%0A    window.localStorage.removeItem(AvailableUpdateVersion)%0A  %7D,%0A%0A
   consum

Add command to clear update state easily