Skip to content

Commit 9fdfe24

Browse files
authored
Merge pull request #35 from ynput/enhancement/use-explicit-addon
Pre-launch hooks: Use addon name instead of host name as settings key
2 parents 7f4056e + d552b0f commit 9fdfe24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/ayon_fusion/hooks/pre_fusion_launch_menu_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class FusionLaunchMenuHook(PreLaunchHook):
1010

1111
def execute(self):
1212
# Prelaunch hook is optional
13-
settings = self.data["project_settings"][self.host_name]
13+
settings = self.data["project_settings"]["fusion"]
1414
if not settings["hooks"]["FusionLaunchMenuHook"]["enabled"]:
1515
return
1616

client/ayon_fusion/hooks/pre_pyside_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class InstallPySideToFusion(PreLaunchHook):
2222
def execute(self):
2323
# Prelaunch hook is not crucial
2424
try:
25-
settings = self.data["project_settings"][self.host_name]
25+
settings = self.data["project_settings"]["fusion"]
2626
if not settings["hooks"]["InstallPySideToFusion"]["enabled"]:
2727
return
2828
self.inner_execute()

0 commit comments

Comments
 (0)