X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2FHomeScreen.git;a=blobdiff_plain;f=HomeScreen%2Fqml%2FShortcutArea.qml;h=1d7dd92be44365cf2a88a3303c01b6165bf44aae;hp=9e71a94d9fb367e6a48659b2d01b4f72e8ebe76d;hb=c4242e92275d4309d3947ff28a7cd3b9f008d8c6;hpb=1ec9bfac42b0ddd9fb61449a1a8ecdd43b218185 diff --git a/HomeScreen/qml/ShortcutArea.qml b/HomeScreen/qml/ShortcutArea.qml index 9e71a94..1d7dd92 100644 --- a/HomeScreen/qml/ShortcutArea.qml +++ b/HomeScreen/qml/ShortcutArea.qml @@ -28,7 +28,7 @@ Item { id: applicationModel ListElement { name: 'Home' - application: 'home@0.1' + application: '' } ListElement { name: 'Multimedia' @@ -44,7 +44,6 @@ Item { } } - property int currentIndex: -1 // TODO: to be moved to whereever right property int pid: -1 RowLayout { @@ -56,13 +55,13 @@ Item { Layout.fillWidth: true Layout.fillHeight: true name: model.name - active: model.index === root.currentIndex + active: model.application === launcher.current onClicked: { - root.currentIndex = active ? -1 : model.index if (0 === model.index) { appLauncherAreaLauncher.visible = true applicationArea.visible = false layoutHandler.hideAppLayer() + launcher.current = '' } else { pid = launcher.launch(model.application)