Anki Forums

Progress indicator (mw.progress.start) in .45+ / basic printing support

to show that some longer action was running you could use some code like this in the past:

# some action

see e.g. Damien’s Basic Printing Support add-on, source.

Up to version .44 this code in an add-on gave you a spinning wheel while the action was running, after .45+ this rotating wheel is no longer shown so that there’s no feedback that the action is running.

How would you fix the code for .45+? Is there another add-on that actually shows the rotating wheel during longer running actions on versions .45+?

I think you’re supposed to use QueryOp or CollectionOp now.
Also see Add-on porting notes for Anki 2.1.45.


I added some notes about this to the docs today:


(the fact that direct calls worked in the past was due to ugly hacks that updated the UI when progress.update() or the DB progress hook was called - these resulted in choppy updates, and could lead to crashes)

1 Like

dae: Thank you very much. Your step-by-step is very useful for someone like me.

Rumo: I could/should have thought of checking this …