From 78ea850517beed937daefa21371059b8755d46e1 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sun, 2 Feb 2014 17:27:08 +0100 Subject: [PATCH] Fix hiding threads in the catalog not being saved. Fix hidden threads showing when refreshing the catalog. --- src/General/Index.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index c06aea093..1e14a779f 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -1,4 +1,5 @@ Index = + showHiddenThreads: false init: -> return if g.BOARD.ID is 'f' or g.VIEW isnt 'index' or !Conf['JSON Navigation'] @@ -161,9 +162,10 @@ Index = $.rm root if Index.showHiddenThreads ThreadHiding.show thread + return unless ThreadHiding.db.get {boardID: thread.board.ID, threadID: thread.ID} + # Don't save when un-hiding filtered threads. else ThreadHiding.hide thread - return unless ThreadHiding.db.get {boardID: thread.board.ID, threadID: thread.ID} ThreadHiding.saveHiddenState thread togglePin: (thread) -> if thread.isPinned