mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-1905 - refactore enabled flag
This commit is contained in:
parent
289b4c76e0
commit
e983f95c81
1 changed files with 3 additions and 3 deletions
|
|
@ -1602,11 +1602,11 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
|
||||
def show_widget(self):
|
||||
"""Show dialog for Sync Queue"""
|
||||
no_errors = False
|
||||
try:
|
||||
self.enabled = False
|
||||
from .tray.app import SyncServerWindow
|
||||
self.widget = SyncServerWindow(self)
|
||||
self.enabled = True
|
||||
no_errors = True
|
||||
except ValueError:
|
||||
log.info("No system setting for sync. Not syncing.", exc_info=True)
|
||||
except KeyError:
|
||||
|
|
@ -1618,7 +1618,7 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
except:
|
||||
log.error("Uncaught exception durin start of SyncServer",
|
||||
exc_info=True)
|
||||
|
||||
self.enabled = no_errors
|
||||
self.widget.show()
|
||||
|
||||
def _get_success_dict(self, new_file_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue