Skip to content

Commit

Permalink
exclamationEvery Observer added
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerajo committed Aug 27, 2017
1 parent 3b05b86 commit 86db802
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/config-observers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ module.exports =
console.error "File didn't found on: " + @path if not exits and value != ""
@superExclamation = if value != "" and exits then @path + value else null

@lapseObserver?.dispose()
@lapseObserver = atom.config.observe 'activate-killer-instinct-mode.superExclamation.lapse', (value) =>
@ElapseObserver?.dispose()
@ElapseObserver = atom.config.observe 'activate-killer-instinct-mode.comboMode.lapse', (value) =>
@ELapse = value

@SElapseObserver?.dispose()
@SElapseObserver = atom.config.observe 'activate-killer-instinct-mode.superExclamation.lapse', (value) =>
@SELapse = value

@exclamationObserver?.dispose()
@exclamationObserver = atom.config.observe 'activate-power-mode.comboMode.exclamationEvery', (value) =>
@ELapse = value
if value != 0
atom.config.set "activate-power-mode.comboMode.exclamationEvery", 0

@muteObserver?.dispose()
@muteObserver = atom.config.observe 'activate-killer-instinct-mode.superExclamation.mute', (value) =>
Expand All @@ -161,6 +166,7 @@ module.exports =

disable: ->
@isSetup = false
atom.config.set "activate-power-mode.flow", "default" if @breakCombo
@activationThresholdObserver?.dispose()
@superExclamationObserver?.dispose()
@onNextLevelObserver?.dispose()
Expand All @@ -170,11 +176,12 @@ module.exports =
@timeLapseObserver?.dispose()
@onDeleteObserver?.dispose()
@onNewMaxObserver?.dispose()
@SElapseObserver?.dispose()
@displayObserver?.dispose()
@volumeObserver?.dispose()
@ElapseObserver?.dispose()
@styleObserver?.dispose()
@typesObserver?.dispose()
@lapseObserver?.dispose()
@flowObserver?.dispose()
@pathObserver?.dispose()
@muteObserver?.dispose()
Expand Down

0 comments on commit 86db802

Please sign in to comment.