marinofaggiana 5 лет назад
Родитель
Сommit
f42e40f19a
2 измененных файлов с 5 добавлено и 1 удалено
  1. 4 1
      iOSClient/Main/CCMain.m
  2. 1 0
      iOSClient/RichWorkspace/NCRichWorkspace.swift

+ 4 - 1
iOSClient/Main/CCMain.m

@@ -1956,7 +1956,10 @@
 
 - (void)viewRichWorkspaceTapAction:(UITapGestureRecognizer *)tapGesture
 {
-    
+    tableMetadata *metadata = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"account == %@ AND serverUrl == %@ AND fileNameView LIKE[c] %@", appDelegate.activeAccount, self.serverUrl, @"readme.md"]];
+    if (metadata) {
+        [self shouldPerformSegue:metadata selector:@""];
+    }
 }
 
 - (void)createRichWorkspace

+ 1 - 0
iOSClient/RichWorkspace/NCRichWorkspace.swift

@@ -47,5 +47,6 @@ import Foundation
         }
         
         webView.loadHTMLString(richWorkspaceHtml, baseURL: Bundle.main.bundleURL)
+        webView.isUserInteractionEnabled = false
     }
 }