mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
removed preregister method because api check must happen just before launch because is running in different process than tray
This commit is contained in:
parent
b8afa33abb
commit
09dc456f73
1 changed files with 0 additions and 9 deletions
|
|
@ -26,15 +26,6 @@ class SyncClocify(BaseAction):
|
|||
#: CLockifyApi
|
||||
clockapi = ClockifyAPI()
|
||||
|
||||
def preregister(self):
|
||||
if self.clockapi.workspace_id is None:
|
||||
return "Clockify Workspace or API key are not set!"
|
||||
|
||||
if self.clockapi.validate_workspace_perm() is False:
|
||||
raise MissingPermision('Clockify')
|
||||
|
||||
return True
|
||||
|
||||
def discover(self, session, entities, event):
|
||||
''' Validation '''
|
||||
if len(entities) != 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue