on xenial help sign in
hide the panel also when the quick list is open and we click/tap outside
abdd5dfLukáš Tinkl
qml/Launcher/Launcher.qml+4
@@ -255,6 +255,10 @@ Item {
255 }
255 }
256 }
256 }
257
257
258+ onHidePanel: {
259+ root.hide();
260+ }
261+
258 Behavior on x {
262 Behavior on x {
259 enabled: !dragArea.dragging && !launcherDragArea.drag.active && panel.animate;
263 enabled: !dragArea.dragging && !launcherDragArea.drag.active && panel.animate;
260 NumberAnimation {
264 NumberAnimation {
qml/Launcher/LauncherPanel.qml+3
@@ -38,6 +38,7 @@ Rectangle {
38
38
39 signal applicationSelected(string appId)
39 signal applicationSelected(string appId)
40 signal showDashHome()
40 signal showDashHome()
41+ signal hidePanel()
41
42
42 onXChanged: {
43 onXChanged: {
43 if (quickList.state == "open") {
44 if (quickList.state == "open") {
@@ -636,12 +637,14 @@ Rectangle {
636 rotation: 90
637 rotation: 90
637 }
638 }
638 }
639 }
640+
639 InverseMouseArea {
641 InverseMouseArea {
640 anchors.fill: quickListShape
642 anchors.fill: quickListShape
641 enabled: quickList.state == "open" || pressed
643 enabled: quickList.state == "open" || pressed
642
644
643 onClicked: {
645 onClicked: {
644 quickList.state = ""
646 quickList.state = ""
647+ root.hidePanel();
645 }
648 }
646
649
647 // Forward for dragging to work when quickList is open
650 // Forward for dragging to work when quickList is open