Add explicit license refresh when the Breezy UI is opened

Prevent unnecessary license warnings
This commit is contained in:
wheaney 2024-08-19 15:06:05 -07:00
parent 1e05f1fc7e
commit ea7930ceaa
1 changed files with 4 additions and 0 deletions

View File

@ -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.