Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 năm trước cách đây
mục cha
commit
87a60aac07
2 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 1 1
      iOSClient/Login/NCLogin.swift
  2. 3 1
      iOSClient/Networking/NCNetworking.swift

+ 1 - 1
iOSClient/Login/NCLogin.swift

@@ -115,7 +115,7 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
             navigationItem.leftBarButtonItem = navigationItemCancel
         }
 
-        if NCBrandOptions.shared.use_GroupApps, let dirGroupApps = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: NCBrandOptions.shared.capabilitiesGroupApps), let url = URL(string: "nextcloudtalk://"), UIApplication.shared.canOpenURL(url) {
+        if NCBrandOptions.shared.use_GroupApps, let dirGroupApps = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: NCBrandOptions.shared.capabilitiesGroupApps) {
             let url = dirGroupApps.appendingPathComponent(NCGlobal.shared.directoryNextcloudAccounts + "/" + NCGlobal.shared.fileShareAccounts)
             if FileManager.default.fileExists(atPath: url.path), let shareAccounts = NKAccountFile().getShareAccount(at: url) {
                 var accountTemp = [NKDataAccountFile]()

+ 3 - 1
iOSClient/Networking/NCNetworking.swift

@@ -1612,7 +1612,9 @@ import Photos
                 let data = try Data(contentsOf: url)
                 let json = try JSONDecoder().decode(Apps.self, from: data)
                 if let appsDecoder = json.apps {
-                    print("")
+                    for app in appsDecoder {
+                        print("")
+                    }
                 }
             } catch { }