mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
moved registering of action to different spot because it cases huge issues when happens in tray_start
This commit is contained in:
parent
29cf951ecf
commit
d0e3caacf4
1 changed files with 10 additions and 9 deletions
|
|
@ -16,17 +16,18 @@ class LauncherAction(PypeModule, ITrayAction):
|
|||
self.create_window()
|
||||
|
||||
def tray_start(self):
|
||||
# Register actions
|
||||
from pype.tools.launcher import actions
|
||||
# actions.register_default_actions()
|
||||
actions.register_config_actions()
|
||||
actions_paths = self.manager.collect_plugin_paths()["actions"]
|
||||
actions.register_actions_from_paths(actions_paths)
|
||||
actions.register_environment_actions()
|
||||
|
||||
def connect_with_modules(self, _enabled_modules):
|
||||
return
|
||||
|
||||
def connect_with_modules(self, enabled_modules):
|
||||
# Register actions
|
||||
if self.tray_initialized:
|
||||
from pype.tools.launcher import actions
|
||||
# actions.register_default_actions()
|
||||
actions.register_config_actions()
|
||||
actions_paths = self.manager.collect_plugin_paths()["actions"]
|
||||
actions.register_actions_from_paths(actions_paths)
|
||||
actions.register_environment_actions()
|
||||
|
||||
def create_window(self):
|
||||
if self.window:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue