Thread watcher always toggleable, add setting for initial visibility

Changes previous "Toggleable Thread Watcher" and "Watcher Defaults to
Visible" to always toggleable and "Persistent Thread Watcher". Updated
keybind description to match.
This commit is contained in:
dzamie 2016-06-29 22:37:14 -04:00
parent 96f1497fb8
commit 9d5c7c1ef7
3 changed files with 9 additions and 14 deletions

View File

@ -98,7 +98,7 @@ Keybinds =
return unless ThreadWatcher.enabled
ThreadWatcher.buttonFetchAll()
when Conf['Toggle thread watcher']
return unless ThreadWatcher.enabled and Conf['Toggleable Thread Watcher']
return unless ThreadWatcher.enabled
ThreadWatcher.toggleWatcher()
# Images
when Conf['Expand image']

View File

@ -34,11 +34,11 @@ ThreadWatcher =
if Conf['Fixed Thread Watcher']
$.addClass doc, 'fixed-watcher'
if Conf['Toggleable Thread Watcher']
if !Conf['Watcher Defaults to Visible']
@dialog.hidden = true
Header.addShortcut 'watcher', sc, 510
$.addClass doc, 'toggleable-watcher'
if !Conf['Persistent Thread Watcher']
@dialog.hidden = true
Header.addShortcut 'watcher', sc, 510
$.addClass doc, 'toggleable-watcher'
ThreadWatcher.fetchAuto()

View File

@ -384,16 +384,11 @@ Config =
'Makes the thread watcher scroll with the page.'
1
]
'Toggleable Thread Watcher': [
'Persistent Thread Watcher': [
true
'Adds a shortcut for the thread watcher and hides the watcher by default.'
'The thread watcher will be visible when the page is loaded.'
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.'
@ -864,7 +859,7 @@ Config =
]
'Toggle thread watcher': [
't'
'Toggle visibility of thread watcher when toggle is enabled'
'Toggle visibility of thread watcher.'
]
# Images
'Expand image': [