all applications can be set on project but custom launch applications are defined in applications lib

This commit is contained in:
Jakub Trllo 2022-02-04 17:03:38 +01:00
parent b4924e5d40
commit b01bf9c91f
4 changed files with 18 additions and 12 deletions

View file

@ -15,8 +15,12 @@ from .constants import (
from .actions import ApplicationAction
from Qt import QtCore, QtGui
from avalon.vendor import qtawesome
from avalon import style, api
from openpype.lib import ApplicationManager, JSONSettingRegistry
from avalon import api
from openpype.lib import JSONSettingRegistry
from openpype.lib.applications import (
CUSTOM_LAUNCH_APP_GROUPS,
ApplicationManager
)
log = logging.getLogger(__name__)
@ -72,6 +76,9 @@ class ActionModel(QtGui.QStandardItemModel):
if not app or not app.enabled:
continue
if app.group.name in CUSTOM_LAUNCH_APP_GROUPS:
continue
# Get from app definition, if not there from app in project
action = type(
"app_{}".format(app_name),