Automatic refresh in the deck browser screen

Where is the code snippet that causes this automatic refresh?

Maybe mw.deckBrowser.refresh()? anki/deckbrowser.py at e361bb9514cad7c187bbe0fcc77b233b18c34d3c · ankitects/anki · GitHub

1 Like

This is the function that refreshes, but who calls it?

It’s called periodically by this code in main.py: anki/main.py at e361bb9514cad7c187bbe0fcc77b233b18c34d3c · ankitects/anki · GitHub

1 Like

Thanks!
And why do you actually need it? Why is it not possible to perform a reading every time there is a change that requires refreshing?

Probably to react to time-dependent changes like cards becoming due or the clock rolling over to the next day.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.