 
     atom.packages.onDidActivatePackage (pack) =>
       @updateEnablement() if pack.name is @pack.name
-      
+
     @subscribeToPackageEvent 'package-installed package-install-failed theme-installed theme-install-failed', (pack, error) =>
       @installButton.prop('disabled', false)
       unless error?

    if atom.packages.isBundledPackage(@pack.name) and @type is 'theme'
      @statusIndicator.hide()

    if opts?.onSettingsView
      @settingsButton.remove()
    else
      @on 'click', =>

  isInstalled: -> atom.packages.isPackageLoaded(@pack.name) and not atom.packages.isPackageDisabled(@pack.name)

  isDisabled: -> atom.packages.isPackageDisabled(@pack.name)

  hasSettings: (pack) ->
    if atom.config.get(pack.name)? then true else false

  subscribeToPackageEvent: (event, callback) ->
    @subscribe @packageManager, event, (pack, error) =>
