Merge pull request #3018 from pypeclub/bugfix/fix_alternate_sites

SiteSync: fix transitive alternate sites, fix dropdown in Local Settings
This commit is contained in:
Petr Kalis 2022-04-08 17:39:15 +02:00 committed by GitHub
commit 92bf8d0035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 19 deletions

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 not in sites and active_site == get_local_site_id():
sites.append(active_site)
return sites
def tray_init(self):