mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
update priorities when changing model
This commit is contained in:
parent
827afacaaa
commit
0bf018fe02
1 changed files with 3 additions and 1 deletions
|
@ -1209,7 +1209,7 @@ modelId = :id
|
|||
where id in %s""" % fids, t=time.time(), id=newModel.id)
|
||||
self.finishProgress()
|
||||
# template remapping
|
||||
self.startProgress(len(cardMap)+3)
|
||||
self.startProgress(len(cardMap)+4)
|
||||
toChange = []
|
||||
self.updateProgress(_("Changing cards..."))
|
||||
for (old, new) in cardMap.items():
|
||||
|
@ -1238,6 +1238,8 @@ where id in %s""" % ids2str(ids), new=new.id, ord=new.ordinal)
|
|||
self.updateProgress()
|
||||
self.updateCardTags()
|
||||
self.updateProgress()
|
||||
self.updateAllPriorities()
|
||||
self.updateProgress()
|
||||
self.rebuildCounts()
|
||||
self.refresh()
|
||||
self.finishProgress()
|
||||
|
|
Loading…
Reference in a new issue