ui: fix QR code refresh tracking in pairing dialog (#35529)

fix QR code refresh tracking

Co-authored-by: Shane Smiskol <shane@smiskol.com>
This commit is contained in:
Dean Lee
2025-06-12 12:36:24 +08:00
committed by GitHub
parent 9d8e4acec9
commit f3d0a9ea13
+1
View File
@@ -58,6 +58,7 @@ class PairingDialog:
current_time = time.time()
if current_time - self.last_qr_generation >= self.QR_REFRESH_INTERVAL:
self._generate_qr_code()
self.last_qr_generation = current_time
def render(self, rect: rl.Rectangle) -> int:
rl.clear_background(rl.Color(224, 224, 224, 255))