Duplicate execution of the same operation in code

Why does self._renderPage() need to be repeated twice in a short code snippet:
In the aqt.deckbrowser on line 70 and line 73 there is another call “self.refresh()” that again executes self._renderPage()?

        self._renderPage()
        # redraw top bar for theme change
        self.mw.toolbar.redraw()
        self.refresh()

    def refresh(self) -> None:
        self._renderPage()
        self._refresh_needed = False

Looks like a mistake - I’ve pushed a fix.

1 Like

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