aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-11-09 15:02:40 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-11-09 15:02:40 +0800
commit4f1ec5ceb2286cbfc85109f53dd60334368911ba (patch)
tree46297cac08431a73bf05b352d3283f3852690590
parent2687a6656112fb5c742bbd722fd7d239cfe52299 (diff)
Change-Id: If5f81af8e88729c13806791c19ff72741832bee0
-rw-r--r--launcher/qml/Launcher.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml
index f6f2702..6d55271 100644
--- a/launcher/qml/Launcher.qml
+++ b/launcher/qml/Launcher.qml
@@ -69,9 +69,13 @@ ApplicationWindow {
y: 264
onPressAndHold: currentId = applicationModel.id(newIndex = index)
onReleased: {
+ if(loc.index < 0) {
+ return
+ }
if (currentId === '') {
pid = launcher.launch(applicationModel.id(loc.index))
if (1 < pid) {
+ homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
else {
console.warn("app cannot be launched!")
@@ -79,7 +83,6 @@ ApplicationWindow {
} else {
currentId = ''
}
- homescreenHandler.tapShortcut(applicationModel.appid(loc.index))
}
onPositionChanged: {
if (loc.currentId === '') return