on xenial help sign in
Fix condition for unloading the scope and fix condition for previewlist visibility
695814cAlbert Astals
qml/Dash/Dash.qml+2−2
@@ -88,8 +88,8 @@ Showable {
88 clip: scale != 1.0 || scopeItem.visible
88 clip: scale != 1.0 || scopeItem.visible
89 Behavior on x {
89 Behavior on x {
90 UbuntuNumberAnimation {
90 UbuntuNumberAnimation {
91− onStopped: {
91+ onRunningChanged: {
92− if (dashContent.x == 0) {
92+ if (!running && dashContent.x == 0) {
93 dashContent.closeScope(scopeItem.scope);
93 dashContent.closeScope(scopeItem.scope);
94 scopeItem.scope = null;
94 scopeItem.scope = null;
95 }
95 }
qml/Dash/DashContent.qml+1
@@ -225,6 +225,7 @@ Item {
225
225
226 PreviewListView {
226 PreviewListView {
227 id: previewListView
227 id: previewListView
228+ visible: x != width
228 scope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
229 scope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
229 pageHeader: dashPageHeader
230 pageHeader: dashPageHeader
230 width: parent.width
231 width: parent.width
qml/Dash/ScopeItem.qml+1
@@ -84,6 +84,7 @@ Item {
84
84
85 PreviewListView {
85 PreviewListView {
86 id: previewListView
86 id: previewListView
87+ visible: x != width
87 pageHeader: scopeItemPageHeader
88 pageHeader: scopeItemPageHeader
88 scope: root.scope
89 scope: root.scope
89 width: parent.width
90 width: parent.width