prevent models.setCurrent() clearing the undo queue

This commit is contained in:
Damien Elmes 2021-05-24 14:54:31 +10:00
parent 5a8f534f00
commit 10aa897674

View File

@ -170,7 +170,8 @@ class ModelManager:
return self.get(NotetypeId(self.all_names_and_ids()[0].id))
def setCurrent(self, m: NotetypeDict) -> None:
self.col.conf["curModel"] = m["id"]
"""Legacy. The current notetype is now updated on note add."""
self.col.set_config("curModel", m["id"])
# Retrieving and creating models
#############################################################