From b682794cf22f55b1014f8311ae70bc9e8a04e1d7 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 21 Nov 2022 12:18:13 +0100 Subject: [PATCH] Set main file details page as initial item of stack view Signed-off-by: Claudio Cambra --- src/gui/filedetails/FileDetailsView.qml | 2 +- src/gui/filedetails/ShareDelegate.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/filedetails/FileDetailsView.qml b/src/gui/filedetails/FileDetailsView.qml index 0f96d0fbfb35..8c9edbaf5a81 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 9a9e95e4725f..0f0b64783e3c 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)