diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index aa1bf4cfd..cacef5f3e 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -251,6 +251,7 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?""", raise AnkiError("abortSchemaMod") self.scm = intTime(1000) self.setMod() + self.save() def schemaChanged(self) -> Any: "True if schema changed since last sync." diff --git a/qt/aqt/deckconf.py b/qt/aqt/deckconf.py index 509462e51..b3f75ea30 100644 --- a/qt/aqt/deckconf.py +++ b/qt/aqt/deckconf.py @@ -131,15 +131,16 @@ class DeckConf(QDialog): # then reload the conf list self.loadConfs() - def remGroup(self): + def remGroup(self) -> None: if int(self.conf["id"]) == 1: showInfo(_("The default configuration can't be removed."), self) else: + self.mw.col.modSchema(check=True) self.mw.col.decks.remove_config(self.conf["id"]) self.deck["conf"] = 1 self.loadConfs() - def renameGroup(self): + def renameGroup(self) -> None: old = self.conf["name"] name = getOnlyText(_("New name:"), default=old) if not name or name == old: