on xenial help sign in
Restore the default behavior of left swipe
8cfb197handsome_feng
qml/Shell.qml+6−2
@@ -456,8 +456,7 @@ Item {
456 }
456 }
457
457
458 if (!greeter.locked && ApplicationManager.focusedApplicationId != "unity8-dash") {
458 if (!greeter.locked && ApplicationManager.focusedApplicationId != "unity8-dash") {
459− dash.setCurrentScope(0, false, true);
460− ApplicationManager.requestFocusApplication("unity8-dash");
459+ ApplicationManager.requestFocusApplication("unity8-dash")
461 launcher.fadeOut();
460 launcher.fadeOut();
462 }
461 }
463 }
462 }
@@ -520,6 +519,11 @@ Item {
520
519
521 onShowDashHome: showHome()
520 onShowDashHome: showHome()
522 onDash: showDash()
521 onDash: showDash()
522+ onDashSwipeChanged: {
523+ if (dashSwipe) {
524+ dash.setCurrentScope(0, false, true)
525+ }
526+ }
523 onLauncherApplicationSelected: {
527 onLauncherApplicationSelected: {
524 if (!tutorial.running) {
528 if (!tutorial.running) {
525 greeter.notifyAboutToFocusApp(appId);
529 greeter.notifyAboutToFocusApp(appId);
tests/qmltests/tst_Shell.qml−5
@@ -471,11 +471,6 @@ Rectangle {
471
471
472 dashCommunicatorSpy.clear();
472 dashCommunicatorSpy.clear();
473
473
474− //Small left swipe
475− swipeFromLeftEdge(units.gu(25));
476−
477− compare(dashCommunicatorSpy.count, 0);
478−
479 //Long left swipe
474 //Long left swipe
480 swipeFromLeftEdge(units.gu(30));
475 swipeFromLeftEdge(units.gu(30));
481
476