on xenial help sign in
hide the panel also when the quick list is open and we click/tap outside
commitabdd5df9c3f437f4d73e88610fc827421ea32ba6 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 5 Jan 2016, 22:15 (11 years ago) parent6959cd8
2 files changed+7
qml/Launcher/Launcher.qml+4 qml/Launcher/LauncherPanel.qml+3
qml/Launcher/Launcher.qml+4
@@ -255,6 +255,10 @@ Item {
255255 }
256256 }
257257
258+ onHidePanel: {
259+ root.hide();
260+ }
261+
258262 Behavior on x {
259263 enabled: !dragArea.dragging && !launcherDragArea.drag.active && panel.animate;
260264 NumberAnimation {
qml/Launcher/LauncherPanel.qml+3
@@ -38,6 +38,7 @@ Rectangle {
3838
3939 signal applicationSelected(string appId)
4040 signal showDashHome()
41+ signal hidePanel()
4142
4243 onXChanged: {
4344 if (quickList.state == "open") {
@@ -636,12 +637,14 @@ Rectangle {
636637 rotation: 90
637638 }
638639 }
640+
639641 InverseMouseArea {
640642 anchors.fill: quickListShape
641643 enabled: quickList.state == "open" || pressed
642644
643645 onClicked: {
644646 quickList.state = ""
647+ root.hidePanel();
645648 }
646649
647650 // Forward for dragging to work when quickList is open