mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
refresh main window after tag change
This commit is contained in:
parent
aa95e44562
commit
9624463777
2 changed files with 4 additions and 1 deletions
|
@ -418,6 +418,7 @@ class EditDeck(QMainWindow):
|
|||
saveGeom(self, "editor")
|
||||
self.hide()
|
||||
ui.dialogs.close("CardList")
|
||||
self.parent.moveToState("auto")
|
||||
return True
|
||||
|
||||
def closeEvent(self, evt):
|
||||
|
|
|
@ -397,8 +397,10 @@ class FactEditor(object):
|
|||
self.fact.tags = canonifyTags(unicode(self.tags.text()))
|
||||
if self.onChange:
|
||||
self.onChange()
|
||||
self.deck.s.flush()
|
||||
self.deck.updatePriorities([c.id for c in self.fact.cards])
|
||||
self.fact.setModified(textChanged=True)
|
||||
self.deck.setModified()
|
||||
self.deck.flushMod()
|
||||
|
||||
def focusField(self, fieldName):
|
||||
self.fields[fieldName][1].setFocus()
|
||||
|
|
Loading…
Reference in a new issue