Only reload non-theme packages on reload of themes

This commit is contained in:
Kevin Sawicki
2013-10-27 18:34:17 -07:00
parent bdd4ac63f4
commit c571d6a9d4

View File

@@ -161,7 +161,9 @@ class Atom
watchThemes: ->
@themes.on 'reloaded', =>
pack.reloadStylesheets?() for name, pack of @packages.getActivePackages()
# Only reload stylesheets from non-theme packages
for pack in @packages.getActivePackages() when pack.getType() isnt 'theme'
pack.reloadStylesheets?()
null
open: (options) ->