Skip to content

Commit

Permalink
Set main file details page as initial item of stack view
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Nov 21, 2022
1 parent 6f70095 commit b682794
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/filedetails/FileDetailsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ StackView {
property var accountState: ({})
property string localPath: ""

FileDetailsPage {
initialItem: FileDetailsPage {
width: parent.width
height: parent.height
accountState: root.accountState
Expand Down
2 changes: 1 addition & 1 deletion src/gui/filedetails/ShareDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ GridLayout {

canCreateLinkShares: root.canCreateLinkShares

onCloseShareDetails: root.rootStackView.clear(StackView.PopTransition)
onCloseShareDetails: root.rootStackView.pop(root.rootStackView.initialItem, StackView.PopTransition)

onToggleAllowEditing: root.toggleAllowEditing(enable)
onToggleAllowResharing: root.toggleAllowResharing(enable)
Expand Down

0 comments on commit b682794

Please sign in to comment.