Fix condition for unloading the scope and fix condition for previewlist visibility
commit695814cb315161c46984f7cc69d2afca3d468552
authorAlbert Astals <albert.astals@canonical.com>
dateFri 21 Feb 2014, 17:04 (13 years ago)
parent1c2fb19
qml/Dash/Dash.qml+2−2
@@ -88,8 +88,8 @@ Showable {
8888 clip: scale != 1.0 || scopeItem.visible
8989 Behavior on x {
9090 UbuntuNumberAnimation {
91− onStopped: {
92− if (dashContent.x == 0) {
91+ onRunningChanged: {
92+ if (!running && dashContent.x == 0) {
9393 dashContent.closeScope(scopeItem.scope);
9494 scopeItem.scope = null;
9595 }
qml/Dash/DashContent.qml+1
@@ -225,6 +225,7 @@ Item {
225225
226226 PreviewListView {
227227 id: previewListView
228+ visible: x != width
228229 scope: dashContentList.currentItem ? dashContentList.currentItem.theScope : null
229230 pageHeader: dashPageHeader
230231 width: parent.width
qml/Dash/ScopeItem.qml+1
@@ -84,6 +84,7 @@ Item {
8484
8585 PreviewListView {
8686 id: previewListView
87+ visible: x != width
8788 pageHeader: scopeItemPageHeader
8889 scope: root.scope
8990 width: parent.width