From ea7930ceaa4076c33ada8423f3dc53ae271ce568 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:06:05 -0700 Subject: [PATCH] Add explicit license refresh when the Breezy UI is opened Prevent unnecessary license warnings --- ui/src/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/main.py b/ui/src/main.py index 668cd7b..08c8890 100644 --- a/ui/src/main.py +++ b/ui/src/main.py @@ -83,6 +83,10 @@ class BreezydesktopApplication(Adw.Application): self.create_action('reset_driver', self.on_reset_driver_action) self._skip_verification = skip_verification + # always do this on start-up since the driver sometimes fails to update the license on boot, + # prevent showing a license warning unnecessarily + XRDriverIPC.get_instance().write_control_flags({'refresh_device_license': True}) + def do_activate(self): """Called when the application is activated.