Skip to content

Commit 372ae34

Browse files
committed
showProjectsPage funct for qml
1 parent b80c867 commit 372ae34

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/qml/project/MMProjectController.qml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ Item {
8181
stackView.push( workspaceListComponent )
8282
}
8383

84+
function showProjectsPage() {
85+
if ( stackView.depth > 1 )
86+
stackView.pop( null ) // gets back to workspaceProjectsPanelComp (initialItem)
87+
88+
stackView.currentItem.state = "workspace"
89+
}
90+
8491
visible: false
8592
focus: true
8693

@@ -670,7 +677,7 @@ Item {
670677
}
671678

672679
function onProcessInvitationSuccess() {
673-
stackView.popOnePageOrClose()
680+
root.showProjectsPage()
674681
}
675682
}
676683
}

0 commit comments

Comments
 (0)