Remove unneeded config listeners
Esse commit está contido em:
@@ -334,7 +334,8 @@ class ThemeManager
|
||||
activateThemes: ->
|
||||
deferred = Q.defer()
|
||||
|
||||
updateThemes = =>
|
||||
# atom.config.observe runs the callback once, then on subsequent changes.
|
||||
atom.config.observe 'core.themes', =>
|
||||
@deactivateThemes()
|
||||
|
||||
@refreshLessCache() # Update cache for packages in core.themes config
|
||||
@@ -356,12 +357,6 @@ class ThemeManager
|
||||
@emitter.emit 'did-change-active-themes'
|
||||
deferred.resolve()
|
||||
|
||||
# atom.config.observe runs the callback once, then on subsequent changes.
|
||||
atom.config.observe('core.themes', updateThemes)
|
||||
atom.config.onDidChange('core.themeColor', updateThemes)
|
||||
atom.config.onDidChange('core.themeContrast', updateThemes)
|
||||
atom.config.onDidChange('core.themeSaturation', updateThemes)
|
||||
|
||||
deferred.promise
|
||||
|
||||
deactivateThemes: ->
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário