Make thread watcher keybinds handle case when thread watcher is disabled.

This commit is contained in:
ccd0 2016-02-12 00:29:36 -08:00
parent c702bc2e7e
commit ecf1ad19ba
2 changed files with 3 additions and 2 deletions

View File

@ -92,9 +92,10 @@ Keybinds =
else else
return return
when Conf['Watch'] when Conf['Watch']
return unless thread return unless ThreadWatcher.enabled and thread
ThreadWatcher.toggle thread ThreadWatcher.toggle thread
when Conf['Update thread watcher'] when Conf['Update thread watcher']
return unless ThreadWatcher.enabled
ThreadWatcher.buttonFetchAll() ThreadWatcher.buttonFetchAll()
# Images # Images
when Conf['Expand image'] when Conf['Expand image']

View File

@ -1,6 +1,6 @@
ThreadWatcher = ThreadWatcher =
init: -> init: ->
return if !Conf['Thread Watcher'] return unless (@enabled = Conf['Thread Watcher'])
@shortcut = sc = $.el 'a', @shortcut = sc = $.el 'a',
id: 'watcher-link' id: 'watcher-link'