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 compareString < '00001.00012.00000.00006'
if data['sauces']? if data['sauces']?
set 'sauces', data['sauces'].replace(/^(#?\s*)https:\/\/(?:desustorage|cuckchan)\.org\//mg, '$1https://desuarchive.org/') 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 changes
loadSettings: (data, cb) -> loadSettings: (data, cb) ->

View File

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

View File

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

View File

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