exit if another tray is discovered

This commit is contained in:
Jakub Trllo 2024-07-24 09:57:30 +02:00
parent a285008755
commit 136da2b470

View file

@ -184,9 +184,13 @@ class TrayManager:
self._update_check_timer.start()
self.execute_in_main_thread(self._startup_validations)
set_tray_server_url(
self._addons_manager.webserver_url, True
)
try:
set_tray_server_url(
self._addons_manager.webserver_url, True
)
except TrayIsRunningError:
self.log.warning("Other tray started meanwhile. Exiting.")
self.exit()
def get_services_submenu(self):
return self._services_submenu