mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't update card tags for priorities, only update priorities if changed
This commit is contained in:
parent
15105b2438
commit
f25e336ce5
1 changed files with 4 additions and 2 deletions
|
@ -243,6 +243,7 @@ class DeckProperties(QDialog):
|
|||
*60*60 + time.timezone)
|
||||
except:
|
||||
pass
|
||||
was = self.d.modified
|
||||
self.updateField(self.d, 'collapseTime',
|
||||
self.dialog.collapse.isChecked() and 1 or 0)
|
||||
self.updateField(self.d,
|
||||
|
@ -257,6 +258,7 @@ class DeckProperties(QDialog):
|
|||
self.updateField(self.d,
|
||||
"suspended",
|
||||
unicode(self.dialog.postponing.text()))
|
||||
prioritiesChanged = was != self.d.modified
|
||||
# sources
|
||||
d = {}
|
||||
d.update(self.sources)
|
||||
|
@ -289,7 +291,7 @@ insert into sources values
|
|||
self.d.setModified()
|
||||
# mark deck dirty and close
|
||||
if self.origMod != self.d.modified:
|
||||
self.d.updateCardTags()
|
||||
if prioritiesChanged:
|
||||
self.d.updateAllPriorities()
|
||||
ankiqt.mw.reset()
|
||||
self.d.setUndoEnd(n)
|
||||
|
|
Loading…
Reference in a new issue