Get the proper directories before themeManage load

This commit is contained in:
Ben Ogle
2013-09-03 12:22:32 -07:00
parent a9c4b23563
commit 9c5c05ff41
3 changed files with 38 additions and 5 deletions

View File

@@ -50,7 +50,15 @@ class ThemeManager
null
getImportPaths: ->
theme.directoryPath for theme in @loadedThemes when theme.directoryPath
if @loadedThemes.length
theme.directoryPath for theme in @loadedThemes when theme.directoryPath
else
themeNames = config.get('core.themes')
themes = []
for themeName in themeNames
themePath = Theme.resolve(themeName)
themes.push(themePath) if fsUtils.isDirectorySync(themePath)
themes
loadUserStylesheet: ->
if userStylesheetPath = @getUserStylesheetPath()