mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed rv action not to load when preset is missing
This commit is contained in:
parent
9d994dd7fc
commit
f217899ea1
1 changed files with 4 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ log = Logger().get_logger(__name__)
|
||||||
|
|
||||||
class RVAction(BaseAction):
|
class RVAction(BaseAction):
|
||||||
""" Launch RV action """
|
""" Launch RV action """
|
||||||
|
ignore_me = "rv" not in config.get_presets()
|
||||||
identifier = "rv.launch.action"
|
identifier = "rv.launch.action"
|
||||||
label = "rv"
|
label = "rv"
|
||||||
description = "rv Launcher"
|
description = "rv Launcher"
|
||||||
|
|
@ -42,8 +43,9 @@ class RVAction(BaseAction):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# if not, fallback to config file location
|
# if not, fallback to config file location
|
||||||
self.config_data = config.get_presets()['rv']['config']
|
if "rv" in config.get_presets():
|
||||||
self.set_rv_path()
|
self.config_data = config.get_presets()['rv']['config']
|
||||||
|
self.set_rv_path()
|
||||||
|
|
||||||
if self.rv_path is None:
|
if self.rv_path is None:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue