mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
SyncServer GUI - safer initialization of DB
This commit is contained in:
parent
2eed46847a
commit
01344854be
1 changed files with 3 additions and 3 deletions
|
|
@ -117,9 +117,6 @@ class SyncServer(PypeModule, ITrayModule):
|
|||
self.presets = None # settings for all enabled projects for sync
|
||||
self.sync_server_thread = None # asyncio requires new thread
|
||||
|
||||
self.connection = AvalonMongoDB()
|
||||
self.connection.install()
|
||||
|
||||
self.action_show_widget = None
|
||||
|
||||
def connect_with_modules(self, *_a, **kw):
|
||||
|
|
@ -138,6 +135,9 @@ class SyncServer(PypeModule, ITrayModule):
|
|||
self.presets = None
|
||||
self.lock = threading.Lock()
|
||||
|
||||
self.connection = AvalonMongoDB()
|
||||
self.connection.install()
|
||||
|
||||
try:
|
||||
self.presets = self.get_synced_presets()
|
||||
self.set_active_sites(self.presets)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue