on xenial help sign in
fix the spread being messed up when an app closes itself
84e8944Michael Zanetti
qml/Stages/PhoneStage.qml+9
@@ -68,6 +68,15 @@ Item {
68 priv.switchToApp(appId)
68 priv.switchToApp(appId)
69 }
69 }
70 }
70 }
71+
72+ onApplicationRemoved: {
73+ // Unless we're closing the app ourselves in the spread,
74+ // lets make sure the spread doesn't mess up by the changing app list.
75+ if (spreadView.closingIndex == -1) {
76+ spreadView.phase = 0;
77+ spreadView.contentX = -spreadView.shift;
78+ }
79+ }
71 }
80 }
72
81
73 QtObject {
82 QtObject {