c14b9e2077
There is currently what I believe to be a small bug in anki. You can clone a note type without doing a full sync, but you can't create forwardReverse and forwardOptionalReverse note type without doing a full sync. On the other hand you can clone, and even create any other basic type without doing a full sync. This commit simply wants to correct this. The main trouble is that the method to create a copy of forwardReverse and forwardOptionalReverse use a copy of the basic model, and add this copy in the model manager BEFORE adding yet another template. This commit corrects it by ensuring that the model is added only after all templates are added, so that anki does not detect any change of a template in the schema. In order to do this, I created a method newBasicModel which creates the basic model without adding it. By the way, addBasicTypingModel could also use newBasicModel, and then only change afmt. I didn't do it here because I believe that you want the change to be minimal, and this correction would not add any feature, only factorize the code. |
||
---|---|---|
anki | ||
aqt | ||
designer | ||
tests | ||
tools | ||
web | ||
.gitignore | ||
.pylintrc | ||
.travis.sh | ||
.travis.yml | ||
anki.1 | ||
anki.desktop | ||
anki.png | ||
anki.xml | ||
anki.xpm | ||
LICENSE | ||
LICENSE.logo | ||
Makefile | ||
pkgkey.asc | ||
README.contributing | ||
README.development | ||
README.md | ||
requirements.txt | ||
runanki |
Anki
This is the development branch of Anki.
For stable builds, please see https://apps.ankiweb.net.
For non-developers who want to try this development code, the easiest way is to use a binary package - please see https://anki.tenderapp.com/discussions/beta-testing
To run from source, please see README.development.
If you are interested in contributing changes to Anki, please see README.contributing before you begin work.