Refresh less cache before activating themes

This ensures the import paths for themes contain the stylesheet directories

Closes #1225
This commit is contained in:
Kevin Sawicki
2013-12-06 13:54:08 -08:00
parent 65fa5bf880
commit 796632c36c

View File

@@ -53,10 +53,13 @@ class ThemeManager
# the first/top theme to override later themes in the stack.
themeNames = _.clone(themeNames).reverse()
@refreshLessCache() # Update cache for packages in core.themes config
@packageManager.activatePackage(themeName) for themeName in themeNames
@refreshLessCache()
@refreshLessCache() # Update cache again now that @getActiveThemes() is populated
@loadUserStylesheet()
@reloadBaseStylesheets()
@emit('reloaded')
# Internal-only: