mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Fix - added active site from settings if same as local id
Without this Tray configuring background process will not show proper site in LS dropdown
This commit is contained in:
parent
312d0309ab
commit
9f9f47145b
1 changed files with 5 additions and 0 deletions
|
|
@ -848,6 +848,11 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
if self.enabled and sync_settings.get('enabled'):
|
||||
sites.append(self.LOCAL_SITE)
|
||||
|
||||
active_site = sync_settings["config"]["active_site"]
|
||||
# for Tray running background process
|
||||
if active_site == get_local_site_id() and active_site not in sites:
|
||||
sites.append(active_site)
|
||||
|
||||
return sites
|
||||
|
||||
def tray_init(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue