summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--HomeScreen/qml/Home.qml13
-rw-r--r--HomeScreen/qml/ShortcutArea.qml13
2 files changed, 18 insertions, 8 deletions
diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml
index 94c10b4..3c8f109 100644
--- a/HomeScreen/qml/Home.qml
+++ b/HomeScreen/qml/Home.qml
@@ -50,11 +50,16 @@ Item {
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!")
+ }
}
}
}
diff --git a/HomeScreen/qml/ShortcutArea.qml b/HomeScreen/qml/ShortcutArea.qml
index d9931cb..684b845 100644
--- a/HomeScreen/qml/ShortcutArea.qml
+++ b/HomeScreen/qml/ShortcutArea.qml
@@ -65,11 +65,16 @@ Item {
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!")
+ }
}
}
}