Эх сурвалжийг харах

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 жил өмнө
parent
commit
5746973d9f

+ 2 - 2
iOSClient/Main/NCFunctionCenter.swift

@@ -76,7 +76,7 @@ import Photos
             self.appDelegate.window?.rootViewController?.present(viewerQuickLook, animated: true)
 
         case NCGlobal.shared.selectorLoadFileView:
-            guard UIApplication.shared.applicationState == UIApplication.State.active else { break }
+            guard UIApplication.shared.applicationState == .active else { break }
 
             if metadata.contentType.contains("opendocument") && !NCUtility.shared.isRichDocument(metadata) {
                 self.openDocumentController(metadata: metadata)
@@ -90,7 +90,7 @@ import Photos
             }
             
         case NCGlobal.shared.selectorOpenIn:
-            if UIApplication.shared.applicationState == UIApplication.State.active {
+            if UIApplication.shared.applicationState == .active {
                 self.openDocumentController(metadata: metadata)
             }
             

+ 1 - 1
iOSClient/Networking/NCNetworking.swift

@@ -111,7 +111,7 @@ import Photos
 
     func networkReachabilityObserver(_ typeReachability: NKCommon.typeReachability) {
 
-#if !EXTENSION
+        #if !EXTENSION
         if typeReachability == NKCommon.typeReachability.reachableCellular || typeReachability == NKCommon.typeReachability.reachableEthernetOrWiFi {
             if !lastReachability {
                 NCService.shared.startRequestServicesServer()