This commit is contained in:
joBr99
2022-10-24 17:59:52 +02:00
committed by GitHub
parent c3b3905b27
commit 6a87818c97

View File

@@ -219,7 +219,10 @@ class LuiController(object):
if button_type == "bExit":
self._pages_gen.render_card(self._current_card)
if button_type == "bUp":
self._current_card = self._previous_cards.pop()
if self._previous_cards:
self._current_card = self._previous_cards.pop()
else:
self._current_card = self._config.getCard(0)
self._pages_gen.render_card(self._current_card)
if button_type == "bNext":