mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-08 23:22:04 +08:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user