Go to file
Arthur Milchior c14b9e2077 Creating now basic type without doing full sync
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.
2019-10-21 02:30:06 +02:00
anki Creating now basic type without doing full sync 2019-10-21 02:30:06 +02:00
aqt Moved number inside ngettext() 2019-10-19 19:39:43 -04:00
designer remove open backup folder link 2019-07-22 10:49:22 +10:00
tests fix negative due dates in filtered decks 2019-09-24 15:38:33 +10:00
tools reduce test verbosity 2019-03-05 08:57:00 +10:00
web use screen-relative max height/width 2019-06-06 09:53:50 +10:00
.gitignore move versionWithBuild into anki module 2019-02-28 08:37:42 +10:00
.pylintrc enable some warnings in pylint 2019-03-04 17:27:39 +10:00
.travis.sh Use jsonschema for add-on manifests 2019-04-24 23:42:49 +03:00
.travis.yml remove travis notifications 2019-04-25 13:33:18 +10:00
anki.1 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.desktop update anki.desktop (thanks to julian) 2017-01-24 18:29:31 +10:00
anki.png merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
anki.xml update file associations 2018-08-20 14:38:22 +10:00
anki.xpm merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
LICENSE tweak translation license 2019-09-24 15:36:06 +10:00
LICENSE.logo clarify logo license 2017-09-06 17:01:23 +10:00
Makefile add missing license file 2018-03-17 10:37:50 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.contributing Update README.contributing 2018-07-10 09:13:10 -07:00
README.development use locales instead of two digit lang codes 2019-09-23 21:18:03 +10:00
README.md mention README.contributing in README.md 2019-04-21 19:07:10 +10:00
requirements.txt as it's only a testing requirement, move mock into docs instead 2019-04-29 12:40:44 +10:00
runanki explicit python3 in runanki, remove /usr/share ref 2016-06-28 15:47:09 +10:00

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.

Build Status