mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
exit if another tray is discovered
This commit is contained in:
parent
a285008755
commit
136da2b470
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue