@@ -130,6 +130,7 @@ Showable {
130 UbuntuNumberAnimation {
130 UbuntuNumberAnimation {
131 onRunningChanged: {
131 onRunningChanged: {
132 if (!running && dashContent.x == 0) {
132 if (!running && dashContent.x == 0) {
133+ console.log("close scope", scopeItem.scope)
133 scopeItem.scopeThatOpenedScope.closeScope(scopeItem.scope);
134 scopeItem.scopeThatOpenedScope.closeScope(scopeItem.scope);
134 scopeItem.scope = null;
135 scopeItem.scope = null;
@@ -209,6 +210,7 @@ Showable {
209 objectName: "dashTempScopeItem"
210 objectName: "dashTempScopeItem"
211 property var scopeThatOpenedScope: null
212 property var scopeThatOpenedScope: null
213+ property var oldScope: null
213 x: dashContent.x + width
215 x: dashContent.x + width
214 y: dashContent.y
216 y: dashContent.y
@@ -222,6 +224,25 @@ Showable {
222 closePreview();
224 closePreview();
230+ onTriggered: scopeItem.closeScope()
234+ console.log("scope changed", scope)
238+ function closeScope() {
240+ console.log("closing scope, oldscope - current scope", oldScope, scopeItem.scope)
241+ oldScope.closeScope(oldScope);
225 Connections {
246 Connections {
226 target: scopeItem.scope
247 target: scopeItem.scope
227 onGotoScope: {
248 onGotoScope: {
@@ -229,7 +250,8 @@ Showable {
230 onOpenScope: {
251 onOpenScope: {
231 scopeItem.closePreview();
252 scopeItem.closePreview();
232− dashContent.openScope(scope);
253+ scopeItem.oldScope = scopeItem.scope;
254+ scopeItem.scope = scope;