diff --git a/src/gui/filedetails/FileDetailsView.qml b/src/gui/filedetails/FileDetailsView.qml index 0f96d0fbfb357..8c9edbaf5a817 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 9a9e95e4725fe..0f0b64783e3cf 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)