mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 08:37:11 -05: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()
|
self.undoStack.pop()
|
||||||
else:
|
else:
|
||||||
self.redoStack = []
|
self.redoStack = []
|
||||||
|
runHook("undoEnd")
|
||||||
|
|
||||||
def _latestUndoRow(self):
|
def _latestUndoRow(self):
|
||||||
return self.s.scalar("select max(rowid) from undoLog") or 0
|
return self.s.scalar("select max(rowid) from undoLog") or 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue