Set 'Persistent Thread Watcher' to inverse of old 'Toggleable Thread Watcher' setting.

Per discussion in #983.
This commit is contained in:
ccd0 2016-07-01 00:05:27 -07:00
parent 07b2b759c8
commit e827b63336
4 changed files with 6 additions and 2 deletions

View File

@ -393,6 +393,9 @@ Settings =
if compareString < '00001.00012.00000.00006'
if data['sauces']?
set 'sauces', data['sauces'].replace(/^(#?\s*)https:\/\/(?:desustorage|cuckchan)\.org\//mg, '$1https://desuarchive.org/')
if compareString < '00001.00012.00001.00000'
if not data['Persistent Thread Watcher']? and data['Toggleable Thread Watcher']?
set 'Persistent Thread Watcher', not data['Toggleable Thread Watcher']
changes
loadSettings: (data, cb) ->

View File

@ -36,7 +36,7 @@ ThreadWatcher =
$.addClass doc, 'fixed-watcher'
if !Conf['Persistent Thread Watcher']
@dialog.hidden = true
Header.addShortcut 'watcher', sc, 510
ThreadWatcher.fetchAuto()

View File

@ -385,7 +385,7 @@ Config =
1
]
'Persistent Thread Watcher': [
true
false
'The thread watcher will be visible when the page is loaded.'
1
]

View File

@ -52,6 +52,7 @@ Main =
Conf['Show Name and Subject'] = false
Conf['QR Shortcut'] = true
Conf['Bottom QR Link'] = true
Conf['Toggleable Thread Watcher'] = true
# Pseudo-enforce default whitelist while configuration loads
if $.platform is 'crx' then $.global ->