mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
prevent models.setCurrent() clearing the undo queue
This commit is contained in:
parent
5a8f534f00
commit
10aa897674
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
#############################################################
|
||||
|
|
Loading…
Reference in a new issue