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:
Petr Kalis 2022-04-06 12:45:49 +02:00
parent 312d0309ab
commit 9f9f47145b

View file

@ -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):