qr timeout 3

This commit is contained in:
Patrick Haßel 2025-06-28 08:41:29 +02:00
parent 6ad4a82d47
commit 5a9188c22b

View File

@ -166,6 +166,7 @@ class Fotobox:
pygame.display.flip()
def _qr_callback(self):
print("QR TIMEOUT")
self._set_state(State.IDLE)
def run(self):
@ -296,7 +297,6 @@ class Fotobox:
else:
self._choice = None
elif new_state == State.QR:
self._qr_timer.restart()
screen.fill((0, 0, 0))
screen.blit(LOADING_SURFACE, LOADING_RECT)
pygame.display.flip()
@ -316,6 +316,8 @@ class Fotobox:
self.save(self._choice.photo_image, "", False)
self.save(self._choice.framed_image, "framed", True)
self._qr_timer.restart()
def save(self, img: Image, suffix: str, do_upload: bool):
filename = "F-%s---R%04d-%s---S%04d-%s---P%04d-%s---%s%s.jpg" % (
self._fotobox_uuid,