Kaynağa Gözat

Do not handle setting page to sharing page if sharing not available

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra 2 yıl önce
ebeveyn
işleme
b8ce198ea9
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 1
      src/gui/filedetails/FileDetailsPage.qml

+ 5 - 1
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;