diff options
Diffstat (limited to 'launcher/qml/Launcher.qml')
-rw-r--r-- | launcher/qml/Launcher.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index 6d55271..6756589 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -41,7 +41,7 @@ ApplicationWindow { GridView { id: grid anchors { - topMargin: 60; bottomMargin: 0 + topMargin: 60; bottomMargin: 0 leftMargin: 60; rightMargin: 60 fill: parent } @@ -67,15 +67,15 @@ ApplicationWindow { property int index: grid.indexAt(loc.mouseX, loc.mouseY) x: 62 y: 264 + anchors.rightMargin: 0 + anchors.bottomMargin: 0 + anchors.leftMargin: 0 + anchors.topMargin: 0 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!") @@ -83,6 +83,7 @@ ApplicationWindow { } else { currentId = '' } + homescreenHandler.tapShortcut(applicationModel.name(loc.index)) } onPositionChanged: { if (loc.currentId === '') return |