hssm/anki-addons

Can enable (=add) active fields, but not disable (=remove).

Closed this issue · 8 comments

When I choose the menu item "Time (Average)" or "Time (Total)", it stays checked, and I now have multiple of each.

hssm commented

That's odd, I can't reproduce it. What version of Anki are you using? And what is your OS? Is it only those two fields?

Anki 2.0.9 on Debian GNU/Linux 7.0.

Also the "First review" field — probably all those which I have enabled myself in the past. Newly-added fields or normal browser fields do not get stuck, so I can't reproduce it with a new profile or other fields.

stuckfields

hssm commented

It's supposed to handle cases where the field names change, but maybe I missed something. Can you please open the debug console in Anki (Ctrl+Shift+;) and paste this line: pp(mw.col.conf). Run it with Ctrl+Enter and paste the output here.

>>> pp(mw.col.conf)
{u'activeCols': [u'noteFld',
                 u'cardDue',
                 u'deck',
                 u'cardLapses',
                 u'question',
                 u'cardIvl',
                 u'cardReps',
                 u'noteCrt',
                 u'cardMod',
                 u'note',
                 u'cardEase',
                 u'template'],
 u'activeDecks': [1,
[…skip…]
],
 u'addToCur': True,
 u'collapseTime': 60,
 u'curDeck': 1,
[…skip…]
 u'dueCounts': True,
 u'estTimes': True,
 u'ifib_activeCols': [u'cfirst',
                      u'ctottime',
                      u'cfirst',
                      u'ctottime',
                      u'cfirst',
                      u'ctottime',
                      u'cavtime',
                      u'cfirst',
                      u'ctottime',
                      u'cavtime',
                      u'cfirst',
                      u'ctottime',
                      u'cavtime',
                      u'cfirst',
                      u'ctottime',
                      u'cavtime',
                      u'cfirst'],
[…skip…]
 u'newSpread': 0,
 u'nextPos': 4281390653,
 u'sortBackwards': 0,
 u'sortType': u'noteCrt',
 u'timeLim': 600}

(I think I can fix the dictionary now, thanks)

hssm commented

I can reproduce the behaviour by adding the values to the dictionary manually, so at least I can fix it for future versions. I still need to understand why it happened though.

hssm commented

I've uploaded a fix to AnkiWeb. It should automatically resolve this next time you start Anki. Thanks for letting me know about the issue!

Thank you. :) It did, on closing.