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
return
when Conf['Watch']
return unless thread
return unless ThreadWatcher.enabled and thread
ThreadWatcher.toggle thread
when Conf['Update thread watcher']
return unless ThreadWatcher.enabled
ThreadWatcher.buttonFetchAll()
# Images
when Conf['Expand image']

View File

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