diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 1ce5a7a84..521092091 100644 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -97,6 +97,9 @@ Keybinds = when Conf['Update thread watcher'] return unless ThreadWatcher.enabled ThreadWatcher.buttonFetchAll() + when Conf['Toggle thread watcher'] + return unless ThreadWatcher.enabled and Conf['Toggleable Thread Watcher'] + ThreadWatcher.toggleWatcher() # Images when Conf['Expand image'] return unless ImageExpand.enabled and threadRoot diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index bbef3f42b..cadb68615 100644 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -35,7 +35,8 @@ ThreadWatcher = if Conf['Fixed Thread Watcher'] $.addClass doc, 'fixed-watcher' if Conf['Toggleable Thread Watcher'] - @dialog.hidden = true + if !Conf['Watcher Defaults to Visible'] + @dialog.hidden = true Header.addShortcut 'watcher', sc, 510 $.addClass doc, 'toggleable-watcher' diff --git a/src/config/Config.coffee b/src/config/Config.coffee index 39c34923b..6b314997d 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -389,6 +389,11 @@ Config = 'Adds a shortcut for the thread watcher and hides the watcher by default.' 1 ] + 'Watcher Defaults to Visible': [ + false + 'Displays the thread watcher by default, rather than hiding it.' + 2 + ] 'Mark New IPs': [ false 'Label each post from a new IP with the thread\'s current IP count.' @@ -857,6 +862,10 @@ Config = 'Shift+r' 'Manually refresh thread watcher.' ] + 'Toggle thread watcher': [ + 't' + 'Toggle visibility of thread watcher when toggle is enabled' + ] # Images 'Expand image': [ 'Shift+e'