Make thread watcher keybinds handle case when thread watcher is disabled.
This commit is contained in:
parent
c702bc2e7e
commit
ecf1ad19ba
@ -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']
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user