Prepend newly enabled themes, not append

This commit is contained in:
Ben Ogle 2013-10-22 16:04:55 -07:00
parent 4a48e1a228
commit a37b029ad9

View File

@ -11,7 +11,9 @@ class ThemePackage extends AtomPackage
getStylesheetType: -> 'theme'
enable: ->
atom.config.pushAtKeyPath('core.themes', @metadata.name)
themes = atom.config.get('core.themes')
themes = [@metadata.name].concat(themes)
atom.config.set('core.themes', themes)
disable: ->
atom.config.removeAtKeyPath('core.themes', @metadata.name)