marinofaggiana 5 년 전
부모
커밋
dd1cfe0a74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      iOSClient/Main/Menu/AppDelegate+Menu.swift

+ 1 - 1
iOSClient/Main/Menu/AppDelegate+Menu.swift

@@ -217,7 +217,7 @@ extension AppDelegate {
         }
         
         if let richdocumentsMimetypes = NCManageDatabase.sharedInstance.getRichdocumentsMimetypes(account: appDelegate.activeAccount) {
-            if richdocumentsMimetypes.count > 0 {
+            if richdocumentsMimetypes.count > 0 && appDelegate.reachability.isReachable() {
                 actions.append(
                     NCMenuAction(
                         title: NSLocalizedString("_create_new_document_", comment: ""),