mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Prepend newly enabled themes, not append
This commit is contained in:
parent
4a48e1a228
commit
a37b029ad9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user