Code Review
/
staging
/
HomeScreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not try to handle not-installed apps
[staging/HomeScreen.git]
/
HomeScreen
/
qml
/
ShortcutArea.qml
diff --git
a/HomeScreen/qml/ShortcutArea.qml
b/HomeScreen/qml/ShortcutArea.qml
index
d9931cb
..
684b845
100644
(file)
--- a/
HomeScreen/qml/ShortcutArea.qml
+++ b/
HomeScreen/qml/ShortcutArea.qml
@@
-65,11
+65,16
@@
Item {
layoutHandler.hideAppLayer()
}
else {
layoutHandler.hideAppLayer()
}
else {
- applicationArea.visible = true
- appLauncherAreaLauncher.visible = false
pid = launcher.launch(model.application)
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!")
+ }
}
}
}
}
}
}