mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't add layers of undo barriers
This commit is contained in:
parent
1e98f8bf81
commit
0ff3b41745
1 changed files with 2 additions and 1 deletions
|
@ -1616,7 +1616,8 @@ insert into undoLog values (null, 'insert into %(t)s (rowid""" % {'t': table}
|
|||
return self.redoStack
|
||||
|
||||
def setUndoBarrier(self):
|
||||
self.undoStack.append(None)
|
||||
if not self.undoStack or self.undoStack[-1] is not None:
|
||||
self.undoStack.append(None)
|
||||
|
||||
def setUndoStart(self, name, merge=False):
|
||||
if not self.undoEnabled:
|
||||
|
|
Loading…
Reference in a new issue