   # disable one plugin
   # @param {Plugin} plugin
   disablePlugin: (plugin) ->
-    config.set "plugin.#{plugin.packageName}.enable", false
+    config.set "plugin.#{plugin.id}.enable", false
     plugin.enabled = false
     @unloadPlugin(plugin)
 

      plugin.description = window.i18n[namespace].__ plugin.description

    plugin.pluginPath = pluginPath
    plugin.enabled = config.get "plugin.#{plugin.packageName}.enable", true

    # Display name
    if !plugin.icon? then plugin.icon = 'fa/th-large'

  # enable one plugin
  # @param {Plugin} plugin
  enablePlugin: (plugin) ->
    config.set "plugin.#{plugin.id}.enable", true
    plugin.enabled = true
    if !plugin.isRead && !plugin.isBroken
      for plugin_, index in @plugins_
