don't hide launcher when nothing happens on long left edge swipes
commitb786ccc4ad7ff4e6af011b0c9afb8019163bfd5d
authorMichael Zanetti <michael.zanetti@canonical.com>
dateTue 2 Sep 2014, 14:01 (12 years ago)
parent62c84f8
qml/Launcher/Launcher.qml+1−2
@@ -243,10 +243,9 @@ Item {
243243 onDraggingChanged: {
244244 if (!dragging) {
245245 if (distance > panel.width / 2) {
246+ root.switchToNextState("visible")
246247 if (distance > minimizeDistance) {
247248 root.dash();
248− } else {
249− root.switchToNextState("visible")
250249 }
251250 } else {
252251 root.switchToNextState("")
qml/Shell.qml+5−1
@@ -533,7 +533,11 @@ Item {
533533 available: edgeDemo.launcherEnabled && (!shell.locked || AccountsService.enableLauncherWhileLocked) && greeter.fakeActiveForApp === ""
534534
535535 onShowDashHome: showHome()
536− onDash: showDash()
536+ onDash: {
537+ if (ApplicationManager.focusedApplicationId != "unity8-dash") {
538+ showDash()
539+ }
540+ }
537541 onDashSwipeChanged: {
538542 if (dashSwipe && ApplicationManager.focusedApplicationId !== "unity8-dash") {
539543 dash.setCurrentScope("clickscope", false, true)