From 3fda519050a9bc638b26307e8d25a45f1fc81eaf Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 13 Jul 2023 10:28:31 +0800 Subject: [PATCH] Do not handle setting page to sharing page if sharing not available Signed-off-by: Claudio Cambra --- src/gui/filedetails/FileDetailsPage.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/filedetails/FileDetailsPage.qml b/src/gui/filedetails/FileDetailsPage.qml index d241618edb..091892de95 100644 --- a/src/gui/filedetails/FileDetailsPage.qml +++ b/src/gui/filedetails/FileDetailsPage.qml @@ -47,7 +47,11 @@ Page { Connections { target: Systray function onShowFileDetailsPage(fileLocalPath, page) { - if(fileLocalPath === root.localPath) { + if (!root.fileDetails.sharingAvailable && page == Systray.FileDetailsPage.Sharing) { + return; + } + + if (fileLocalPath === root.localPath) { switch(page) { case Systray.FileDetailsPage.Activity: swipeView.currentIndex = fileActivityView.swipeIndex;