diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2019-11-25 17:00:50 +0300 |
---|---|---|
committer | Grigorii Zimin <gzimin@luxoft.com> | 2019-11-25 14:19:25 +0000 |
commit | 4bf603214cd4fd7f0329e27db2386f6a199bb058 (patch) | |
tree | 1d0c13996cf806cd8e76c769a496ea4cb0c2f16b /sysui | |
parent | 2423cd06cc6a7b01456b32410d9b1d8c59af1876 (diff) |
[sysui] fix launcher grid not open
Task-number: AUTOSUITE-1348
Change-Id: I40b03b757ccbd63364a60738ec446c134a43a3cc
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/launcher/Launcher.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sysui/launcher/Launcher.qml b/sysui/launcher/Launcher.qml index 36bab7bd..f9463777 100644 --- a/sysui/launcher/Launcher.qml +++ b/sysui/launcher/Launcher.qml @@ -46,7 +46,7 @@ Item { id: root readonly property real expandedHeight: Sizes.dp(800) - readonly property bool open: gridButton.checked + readonly property bool open: gridButton.gridOpen property bool showDevApps: false property bool showSystemApps: false property var applicationModel @@ -59,7 +59,7 @@ Item { id: backgroundArea width: root.parentWidth height: root.parentHeight - onClicked: gridButton.checked = false; + onClicked: gridButton.gridOpen = false; enabled: root.open } @@ -99,7 +99,8 @@ Item { objectName: "gridButton" width: Sizes.dp(90) height: Sizes.dp(90) - + //holds the state of apps grid (opened/closed) + property bool gridOpen: false readonly property bool useCloseIcon: editableLauncher.gridEditMode || root.open anchors.top: parent.top @@ -121,7 +122,7 @@ Item { icon: gridButton.icon color: gridButton.icon.color } - onClicked: gridButton.checked = !gridButton.checked + onClicked: gridButton.gridOpen = !gridButton.gridOpen } EditableGridView { @@ -136,7 +137,7 @@ Item { showSystemApps: root.showSystemApps exclusiveButtonGroup: buttonGroup onAppButtonClicked: { - gridButton.checked = false; + gridButton.gridOpen = false; } } state: _isThereActiveApp ? (root.open ? "open_active_app" : "closed_active_app") : (root.open ? "open_no_app" : "closed_no_app") |