From: Claudio Cambra Date: Mon, 21 Nov 2022 11:18:13 +0000 (+0100) Subject: Set main file details page as initial item of stack view X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~79^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4d837bd02711eb2d1169d6faa0b9b3089a9c35e7;p=nextcloud-desktop.git Set main file details page as initial item of stack view Signed-off-by: Claudio Cambra --- diff --git a/src/gui/filedetails/FileDetailsView.qml b/src/gui/filedetails/FileDetailsView.qml index 0f96d0fbf..8c9edbaf5 100644 --- a/src/gui/filedetails/FileDetailsView.qml +++ b/src/gui/filedetails/FileDetailsView.qml @@ -25,7 +25,7 @@ StackView { property var accountState: ({}) property string localPath: "" - FileDetailsPage { + initialItem: FileDetailsPage { width: parent.width height: parent.height accountState: root.accountState diff --git a/src/gui/filedetails/ShareDelegate.qml b/src/gui/filedetails/ShareDelegate.qml index d76268405..2f0f32405 100644 --- a/src/gui/filedetails/ShareDelegate.qml +++ b/src/gui/filedetails/ShareDelegate.qml @@ -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)