From 4d837bd02711eb2d1169d6faa0b9b3089a9c35e7 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 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) -- 2.30.2