on xenial help sign in
launcher revealing tweaks
4f8c534Michael Zanetti
Launcher/Launcher.qml+5−5
@@ -50,7 +50,7 @@ Item {
50 }
50 }
51
51
52 function hide() {
52 function hide() {
53− state = ""
53+ switchToNextState("")
54 }
54 }
55
55
56 function switchToNextState(state) {
56 function switchToNextState(state) {
@@ -215,11 +215,11 @@ Item {
215
215
216 onDraggingChanged: {
216 onDraggingChanged: {
217 if (!dragging) {
217 if (!dragging) {
218− if (distance > root.width / 2) {
218+ if (distance > panel.width / 2) {
219− root.dash()
220− root.switchToNextState("")
221− } else if (distance > panel.width/2) {
222 root.switchToNextState("visible")
219 root.switchToNextState("visible")
220+ if (distance > panel.width * 2) {
221+ root.dash()
222+ }
223 } else {
223 } else {
224 root.switchToNextState("")
224 root.switchToNextState("")
225 }
225 }
Shell.qml+5−2
@@ -550,8 +550,11 @@ FocusScope {
550 stages.hide();
550 stages.hide();
551 }
551 }
552 onDash: {
552 onDash: {
553+ if (stages.shown) {
553− dash.setCurrentScope("applications.scope", true, false)
554+ dash.setCurrentScope("applications.scope", true, false)
554− stages.hide();
555+ stages.hide();
556+ launcher.hide();
557+ }
555 }
558 }
556 onLauncherApplicationSelected:{
559 onLauncherApplicationSelected:{
557 greeter.hide()
560 greeter.hide()