on xenial help sign in
fix side stage state after rotation
commitd079aad8e7525ca006d566f405ef829a2d580ad0 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 8 Nov 2016, 13:26 (10 years ago) parent6a4452d
1 file changed+6−4
qml/Stage/Stage.qml+6−4
qml/Stage/Stage.qml+6−4
@@ -235,6 +235,12 @@ FocusScope {
235235 readonly property bool sideStageEnabled: root.mode === "stagedWithSideStage" &&
236236 (root.shellOrientation == Qt.LandscapeOrientation ||
237237 root.shellOrientation == Qt.InvertedLandscapeOrientation)
238+ onSideStageEnabledChanged: {
239+ for (var i = 0; i < appRepeater.count; i++) {
240+ appRepeater.itemAt(i).refreshStage();
241+ }
242+ priv.updateMainAndSideStageIndexes();
243+ }
238244
239245 property var mainStageDelegate: null
240246 property var sideStageDelegate: null
@@ -706,10 +712,6 @@ FocusScope {
706712 }
707713 }
708714 }
709− Connections {
710− target: priv
711− onSideStageEnabledChanged: refreshStage()
712− }
713715
714716 readonly property alias application: decoratedWindow.application
715717 readonly property alias minimumWidth: decoratedWindow.minimumWidth