From 796632c36c992cb61148779cb7ab022f5f40b822 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 6 Dec 2013 13:54:08 -0800 Subject: [PATCH] Refresh less cache before activating themes This ensures the import paths for themes contain the stylesheet directories Closes #1225 --- src/theme-manager.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/theme-manager.coffee b/src/theme-manager.coffee index becccf027..b34d07acf 100644 --- a/src/theme-manager.coffee +++ b/src/theme-manager.coffee @@ -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: