mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
add hook for when undo is finished
This commit is contained in:
parent
84cb81854b
commit
9332444dfd
1 changed files with 1 additions and 0 deletions
|
@ -2581,6 +2581,7 @@ insert into undoLog values (null, 'insert into %(t)s (rowid""" % {'t': table}
|
|||
self.undoStack.pop()
|
||||
else:
|
||||
self.redoStack = []
|
||||
runHook("undoEnd")
|
||||
|
||||
def _latestUndoRow(self):
|
||||
return self.s.scalar("select max(rowid) from undoLog") or 0
|
||||
|
|
Loading…
Reference in a new issue