# Automatic refresh in the deck browser screen

**URL:** <https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439>\
**Category:** Help\
**Created:** [April 17, 2023, 11:07am UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439 "2023-04-17T11:07:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [April 17, 2023, 11:07am UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/1 "2023-04-17T11:07:31Z")

</div>

Where is the code snippet that causes this automatic refresh?

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [April 17, 2023, 2:16pm UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/2 "2023-04-17T14:16:10Z")

</div>

Maybe mw.deckBrowser.refresh()? [anki/deckbrowser.py at e361bb9514cad7c187bbe0fcc77b233b18c34d3c · ankitects/anki · GitHub](https://github.com/ankitects/anki/blob/e361bb9514cad7c187bbe0fcc77b233b18c34d3c/qt/aqt/deckbrowser.py#L75)

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [April 17, 2023, 2:38pm UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/3 "2023-04-17T14:38:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [April 17, 2023, 4:14pm UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/4 "2023-04-17T16:14:06Z")

</div>

It’s called periodically by this code in main.py: [anki/main.py at e361bb9514cad7c187bbe0fcc77b233b18c34d3c · ankitects/anki · GitHub](https://github.com/ankitects/anki/blob/e361bb9514cad7c187bbe0fcc77b233b18c34d3c/qt/aqt/main.py#L1426)

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [April 17, 2023, 4:44pm UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/5 "2023-04-17T16:44:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [April 17, 2023, 7:59pm UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/6 "2023-04-17T19:59:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 17, 2023, 8:00pm UTC](https://forums.ankiweb.net/t/automatic-refresh-in-the-deck-browser-screen/29439/7 "2023-05-17T20:00:03Z")

</div>

Closed on May 17, 2023, 8:00pm UTC

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