Add ThemeManager.setEnabledThemes

This commit is contained in:
Ben Ogle 2013-10-22 18:09:21 -07:00
parent cbb82b1dcc
commit 80f4e7eb7f

View File

@ -64,6 +64,12 @@ class ThemeManager
@packageManager.deactivatePackage(pack.name) for pack in @getActiveThemes()
null
# Public: Set the list of enabled themes.
#
# * enabledThemeNames: An {Array} of {String} theme names.
setEnabledThemes: (enabledThemeNames) ->
atom.config.set('core.themes', enabledThemeNames)
# Public:
getImportPaths: ->
activeThemes = @getActiveThemes()