Let Index.updateHideLabel keep track of whether Index is enabled rather than its callers.
This commit is contained in:
parent
05bffd36c5
commit
88be17aeb1
@ -182,7 +182,7 @@ ThreadHiding =
|
|||||||
return if thread.isHidden
|
return if thread.isHidden
|
||||||
threadRoot = thread.nodes.root
|
threadRoot = thread.nodes.root
|
||||||
thread.isHidden = true
|
thread.isHidden = true
|
||||||
Index.updateHideLabel() if Conf['JSON Index']
|
Index.updateHideLabel()
|
||||||
|
|
||||||
return threadRoot.hidden = true unless makeStub
|
return threadRoot.hidden = true unless makeStub
|
||||||
|
|
||||||
@ -194,4 +194,4 @@ ThreadHiding =
|
|||||||
delete thread.stub
|
delete thread.stub
|
||||||
threadRoot = thread.nodes.root
|
threadRoot = thread.nodes.root
|
||||||
threadRoot.hidden = thread.isHidden = false
|
threadRoot.hidden = thread.isHidden = false
|
||||||
Index.updateHideLabel() if Conf['JSON Index']
|
Index.updateHideLabel()
|
||||||
|
|||||||
@ -518,6 +518,7 @@ Index =
|
|||||||
$.add strong, a
|
$.add strong, a
|
||||||
|
|
||||||
updateHideLabel: ->
|
updateHideLabel: ->
|
||||||
|
return unless Index.hideLabel
|
||||||
hiddenCount = 0
|
hiddenCount = 0
|
||||||
for threadID in Index.liveThreadIDs when Index.isHidden(threadID)
|
for threadID in Index.liveThreadIDs when Index.isHidden(threadID)
|
||||||
hiddenCount++
|
hiddenCount++
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user