fix the spread being messed up when an app closes itself
commit84e894400957cbf94b3eb20c7dc24f98909cb8f0
authorMichael Zanetti <michael.zanetti@canonical.com>
dateWed 2 Jul 2014, 14:35 (12 years ago)
parent35c2256
qml/Stages/PhoneStage.qml+9
@@ -68,6 +68,15 @@ Item {
6868 priv.switchToApp(appId)
6969 }
7070 }
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+ }
7180 }
7281
7382 QtObject {