mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Identifier is now full app name(with version), so same app won't launch twice if two versions are available.
This commit is contained in:
parent
c5c6927e61
commit
e19fbea3e9
2 changed files with 3 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ from app.api import Logger
|
|||
log = Logger.getLogger(__name__)
|
||||
|
||||
def registerApp(app, session):
|
||||
name = app['name'].split("_")[0]
|
||||
name = app['name'].replace("_", ".")
|
||||
variant = ""
|
||||
try:
|
||||
variant = app['name'].split("_")[1]
|
||||
|
|
@ -59,6 +59,7 @@ def register(session):
|
|||
appNames.append(app['name'])
|
||||
apps.append(app)
|
||||
|
||||
apps = sorted(apps, key=lambda x: x['name'])
|
||||
for app in apps:
|
||||
try:
|
||||
registerApp(app, session)
|
||||
|
|
|
|||
|
|
@ -72,9 +72,7 @@ class AppAction(object):
|
|||
),
|
||||
self._launch
|
||||
)
|
||||
self.log.info("Application '{}' - Registered successfully".format(self.label))
|
||||
|
||||
self.log.info("Application '{}' - Registered successfully".format(self.label))
|
||||
self.log.info("Application '{} {}' - Registered successfully".format(self.label,self.variant))
|
||||
|
||||
def _discover(self, event):
|
||||
args = self._translate_event(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue