Code Review
/
apps
/
launcher.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix issue,call tap_shortcut carelessly
[apps/launcher.git]
/
launcher
/
qml
/
Launcher.qml
diff --git
a/launcher/qml/Launcher.qml
b/launcher/qml/Launcher.qml
index
31b1f3d
..
6d55271
100644
(file)
--- a/
launcher/qml/Launcher.qml
+++ b/
launcher/qml/Launcher.qml
@@
-69,9
+69,13
@@
ApplicationWindow {
y: 264
onPressAndHold: currentId = applicationModel.id(newIndex = index)
onReleased: {
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) {
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!")
}
else {
console.warn("app cannot be launched!")
@@
-79,7
+83,6
@@
ApplicationWindow {
} else {
currentId = ''
}
} else {
currentId = ''
}
- homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
onPositionChanged: {
if (loc.currentId === '') return
}
onPositionChanged: {
if (loc.currentId === '') return