mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
more precision on undo progress
This commit is contained in:
parent
1fa7466dd9
commit
f515a6c5f9
1 changed files with 2 additions and 2 deletions
|
@ -1871,9 +1871,9 @@ insert into undoLog values (null, 'insert into %(t)s (rowid""" % {'t': table}
|
|||
sql = self.s.column0("""
|
||||
select sql from undoLog where
|
||||
seq > :s and seq <= :e order by seq desc""", s=start, e=end)
|
||||
mod = len(sql) / 20
|
||||
mod = len(sql) / 35
|
||||
if mod:
|
||||
self.startProgress(_("Undo/Redo"), 0, 21)
|
||||
self.startProgress(_("Undo/Redo"), 0, 36)
|
||||
self.updateProgress(_("Applying changes..."))
|
||||
newstart = self._latestUndoRow()
|
||||
for c, s in enumerate(sql):
|
||||
|
|
Loading…
Reference in a new issue