Remove the right hook.
The code was removing a hook that was not added, with the result that the hook was not actually being removed.
This commit is contained in:
parent
616e731e34
commit
bc8b9d5110
@ -1131,7 +1131,7 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
|
|||||||
def teardownHooks(self):
|
def teardownHooks(self):
|
||||||
remHook("reset", self.onReset)
|
remHook("reset", self.onReset)
|
||||||
remHook("editTimer", self.refreshCurrentCard)
|
remHook("editTimer", self.refreshCurrentCard)
|
||||||
remHook("editFocusLost", self.refreshCurrentCard)
|
remHook("editFocusLost", self.refreshCurrentCardFilter)
|
||||||
remHook("undoState", self.onUndoState)
|
remHook("undoState", self.onUndoState)
|
||||||
for t in "newTag", "newModel", "newDeck":
|
for t in "newTag", "newModel", "newDeck":
|
||||||
remHook(t, self.buildTree)
|
remHook(t, self.buildTree)
|
||||||
|
Loading…
Reference in New Issue
Block a user