on xenial help sign in
Restore the default behavior of left swipe
commit8cfb197acd91faf424cc54decd8d85a474809343 authorhandsome_feng <445865575@qq.com> dateThu 28 May 2015, 11:41 (11 years ago) parent2fb6eee
2 files changed+6−7
qml/Shell.qml+6−2 tests/qmltests/tst_Shell.qml−5
qml/Shell.qml+6−2
@@ -456,8 +456,7 @@ Item {
456456 }
457457
458458 if (!greeter.locked && ApplicationManager.focusedApplicationId != "unity8-dash") {
459− dash.setCurrentScope(0, false, true);
460− ApplicationManager.requestFocusApplication("unity8-dash");
459+ ApplicationManager.requestFocusApplication("unity8-dash")
461460 launcher.fadeOut();
462461 }
463462 }
@@ -520,6 +519,11 @@ Item {
520519
521520 onShowDashHome: showHome()
522521 onDash: showDash()
522+ onDashSwipeChanged: {
523+ if (dashSwipe) {
524+ dash.setCurrentScope(0, false, true)
525+ }
526+ }
523527 onLauncherApplicationSelected: {
524528 if (!tutorial.running) {
525529 greeter.notifyAboutToFocusApp(appId);
tests/qmltests/tst_Shell.qml−5
@@ -471,11 +471,6 @@ Rectangle {
471471
472472 dashCommunicatorSpy.clear();
473473
474− //Small left swipe
475− swipeFromLeftEdge(units.gu(25));
476−
477− compare(dashCommunicatorSpy.count, 0);
478−
479474 //Long left swipe
480475 swipeFromLeftEdge(units.gu(30));
481476