Apps that are not installed will not
trigger any further action now
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
onClicked: {
console.log("app is ", model.id)
pid = launcher.launch(model.id)
- layoutHandler.makeMeVisible(pid)
+ if (1 < pid) {
+ layoutHandler.makeMeVisible(pid)
- applicationArea.visible = true
- appLauncherAreaLauncher.visible = false
- layoutHandler.showAppLayer()
+ applicationArea.visible = true
+ appLauncherAreaLauncher.visible = false
+ layoutHandler.showAppLayer()
+ }
+ else {
+ console.warn("app cannot be launched!")
+ }
}
}
}
layoutHandler.hideAppLayer()
}
else {
- applicationArea.visible = true
- appLauncherAreaLauncher.visible = false
pid = launcher.launch(model.application)
- layoutHandler.makeMeVisible(pid)
- layoutHandler.showAppLayer()
+ if (1 < pid) {
+ applicationArea.visible = true
+ appLauncherAreaLauncher.visible = false
+ layoutHandler.makeMeVisible(pid)
+ layoutHandler.showAppLayer()
+ }
+ else {
+ console.warn("app cannot be launched!")
+ }
}
}
}