]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Do not handle setting page to sharing page if sharing not available
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 13 Jul 2023 02:28:31 +0000 (10:28 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 18 Jul 2023 13:49:17 +0000 (15:49 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/FileDetailsPage.qml

index d241618edb900bc69504a728db33e9082f91a618..091892de952f73ce00916db97b7efd32315850ef 100644 (file)
@@ -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;