mortii / anki-morphs

A MorphMan fork rebuilt from the ground up with a focus on simplicity, performance, and a codebase with minimal technical debt.
https://mortii.github.io/anki-morphs/
GNU Affero General Public License v3.0
61 stars 9 forks source link

It takes more than 5 seconds to use the Undo command #46

Closed HQYang1979 closed 11 months ago

HQYang1979 commented 11 months ago

When I merge two cards and find out that they are in the wrong order and try to undo, it takes more than 5 seconds to complete the command. I do have a huge note collection though, but it shouldn't take that long. And I know it is because of ankimorph, it only happens when I enable ankimorph.

image

mortii commented 11 months ago

Interesting, I didn't even know you could merge cards.

When you review/study cards and you undo does that also take a long time?

HQYang1979 commented 11 months ago

the addon is AJT merge note.

yes it takes a long time when I review/study cards and I undo.

mortii commented 11 months ago

That is definitely not ideal.... Undoing is a nightmare because the add-on loses track of which morphs have been seen today, and it's not a trivial thing to fix. Maybe it could be run on a background thread though, that would prevent the freezing at least. I'll see what I can do.

mortii commented 11 months ago

v0.6.1-alpha changelog:

When undoing (Ctrl+Z) the 'seen morphs' list is rebuilt from scratch to make sure it is up to date. That can cause Anki to freeze depending on how many cards you have reviewed today and how good your hardware is. The freezing is now fixed by running it on a background thread and showing a progress window.

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.