qr timeout 2
This commit is contained in:
parent
6768852636
commit
6ad4a82d47
@ -225,6 +225,7 @@ class Fotobox:
|
||||
dt: float = clock.tick(20) / 1000
|
||||
self._shooting_timer.tick(dt)
|
||||
self._countdown_timer.tick(dt)
|
||||
self._qr_timer.tick(dt)
|
||||
|
||||
def _draw(self):
|
||||
screen.fill((0, 0, 0))
|
||||
@ -295,6 +296,7 @@ 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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user