mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
application load label and icon from toml
This commit is contained in:
parent
18aa8db10d
commit
e588b6e686
1 changed files with 5 additions and 9 deletions
|
|
@ -24,16 +24,12 @@ def registerApp(app, session):
|
|||
|
||||
apptoml = toml.load(abspath)
|
||||
executable = apptoml['executable']
|
||||
|
||||
label = app['label']
|
||||
icon = None
|
||||
# TODO get right icons
|
||||
if 'nuke' in app['name']:
|
||||
icon = "https://mbtskoudsalg.com/images/nuke-icon-png-2.png"
|
||||
label = "Nuke"
|
||||
elif 'maya' in app['name']:
|
||||
icon = "http://icons.iconarchive.com/icons/froyoshark/enkel/256/Maya-icon.png"
|
||||
label = "Autodesk Maya"
|
||||
if 'ftrack_label' in apptoml:
|
||||
label = app['ftrack_label']
|
||||
|
||||
if 'icon' in apptoml:
|
||||
icon = apptoml['icon']
|
||||
|
||||
# register action
|
||||
AppAction(session, label, name, executable, variant, icon).register()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue