mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Merge pull request #1258 from atom/ks-refresh-less-cache
Refresh less cache before activating themes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user