on xenial help sign in
fix home button not working while in spread mode
commit450608dcf3ab44ae6af22e7ab81a134bddf29d38 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 13 Mar 2014, 13:18 (13 years ago) parentee5c510
2 files changed+9−1
qml/Shell.qml+5−1 qml/Stages/PhoneStage.qml+4
qml/Shell.qml+5−1
@@ -253,7 +253,10 @@ FocusScope {
253253 if (locked) {
254254 return;
255255 }
256+ forceHide();
257+ }
256258
259+ function forceHide() {
257260 shown = false;
258261 if (ApplicationManager.focusedApplicationId) {
259262 ApplicationManager.unfocusCurrentApplication();
@@ -441,7 +444,7 @@ FocusScope {
441444 var animate = !greeter.shown && !stages.shown
442445 greeter.hide()
443446 dash.setCurrentScope("home.scope", animate, false)
444− stages.hide()
447+ stages.forceHide()
445448 }
446449
447450 function hideIndicatorMenu(delay) {
@@ -544,6 +547,7 @@ FocusScope {
544547 if (edgeDemo.running)
545548 return;
546549
550+ print("calling this")
547551 showHome()
548552 }
549553 onDash: {
qml/Stages/PhoneStage.qml+4
@@ -68,6 +68,10 @@ Item {
6868 root.fullscreen = application.fullscreen
6969 mainScreenshotImage.src = application.screenshot
7070 }
71+ } else {
72+ spreadView.selectedIndex = -1
73+ spreadView.stage = 0;
74+ spreadView.contentX = -spreadView.shift;
7175 }
7276 }
7377