Fix hiding threads in the catalog not being saved.
Fix hidden threads showing when refreshing the catalog.
This commit is contained in:
parent
0334d8a9aa
commit
78ea850517
@ -1,4 +1,5 @@
|
|||||||
Index =
|
Index =
|
||||||
|
showHiddenThreads: false
|
||||||
init: ->
|
init: ->
|
||||||
return if g.BOARD.ID is 'f' or g.VIEW isnt 'index' or !Conf['JSON Navigation']
|
return if g.BOARD.ID is 'f' or g.VIEW isnt 'index' or !Conf['JSON Navigation']
|
||||||
|
|
||||||
@ -161,9 +162,10 @@ Index =
|
|||||||
$.rm root
|
$.rm root
|
||||||
if Index.showHiddenThreads
|
if Index.showHiddenThreads
|
||||||
ThreadHiding.show thread
|
ThreadHiding.show thread
|
||||||
|
return unless ThreadHiding.db.get {boardID: thread.board.ID, threadID: thread.ID}
|
||||||
|
# Don't save when un-hiding filtered threads.
|
||||||
else
|
else
|
||||||
ThreadHiding.hide thread
|
ThreadHiding.hide thread
|
||||||
return unless ThreadHiding.db.get {boardID: thread.board.ID, threadID: thread.ID}
|
|
||||||
ThreadHiding.saveHiddenState thread
|
ThreadHiding.saveHiddenState thread
|
||||||
togglePin: (thread) ->
|
togglePin: (thread) ->
|
||||||
if thread.isPinned
|
if thread.isPinned
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user