@@ -96,8 +96,6 @@ Showable {
96 DashContent {
96 DashContent {
97 id: dashContent
97 id: dashContent
99− property var scopeThatOpenedScope: null
101 objectName: "dashContent"
99 objectName: "dashContent"
102 width: dash.width
100 width: dash.width
103 height: dash.height
101 height: dash.height
@@ -107,7 +105,7 @@ Showable {
107 dash.setCurrentScope(scopeId, true, false);
105 dash.setCurrentScope(scopeId, true, false);
109 onOpenScope: {
107 onOpenScope: {
110− scopeThatOpenedScope = currentScope;
108+ scopeItem.scopeThatOpenedScope = currentScope;
111 scopeItem.scope = scope;
109 scopeItem.scope = scope;
112 x = -width;
110 x = -width;
@@ -124,7 +122,7 @@ Showable {
124 duration: bottomEdgeController.progress != 0 ? 0 : UbuntuAnimation.FastDuration
122 duration: bottomEdgeController.progress != 0 ? 0 : UbuntuAnimation.FastDuration
125 onRunningChanged: {
123 onRunningChanged: {
126 if (!running && dashContent.x == 0) {
124 if (!running && dashContent.x == 0) {
127− dashContent.scopeThatOpenedScope.closeScope(scopeItem.scope);
125+ scopeItem.scopeThatOpenedScope.closeScope(scopeItem.scope);
128 scopeItem.scope = null;
126 scopeItem.scope = null;
@@ -169,6 +167,22 @@ Showable {
169 property: "isActive"
167 property: "isActive"
170 value: bottomEdgeController.progress === 1
168 value: bottomEdgeController.progress === 1
172+ target: scopesList.scope
174+ bottomEdgeController.enableAnimation = true;
175+ bottomEdgeController.progress = 0;
176+ scopeItem.scopeThatOpenedScope = scopesList.scope;
177+ scopeItem.scope = scope;
178+ dashContent.x = -dashContent.width;
181+ bottomEdgeController.enableAnimation = true;
182+ bottomEdgeController.progress = 0;
183+ dashContent.gotoScope(scopeId);
174 DashBackground
188 DashBackground
@@ -184,6 +198,8 @@ Showable {
184 id: scopeItem
198 id: scopeItem
185 objectName: "dashTempScopeItem"
199 objectName: "dashTempScopeItem"
201+ property var scopeThatOpenedScope: null
187 x: dashContent.x + width
203 x: dashContent.x + width
188 y: dashContent.y
204 y: dashContent.y
189 width: parent.width
205 width: parent.width
@@ -295,7 +311,7 @@ Showable {
295 enabled: !dashContent.subPageShown &&
311 enabled: !dashContent.subPageShown &&
296 dashContent.currentScope &&
312 dashContent.currentScope &&
297 dashContent.currentScope.searchQuery == "" &&
313 dashContent.currentScope.searchQuery == "" &&
298− !scopeItem.subPageShown &&
314+ !scopeItem.scope &&
299 (bottomEdgeController.progress == 0 || dragging)
315 (bottomEdgeController.progress == 0 || dragging)
301 readonly property real fullMovement: dash.height
317 readonly property real fullMovement: dash.height