Jelajahi Sumber

Fix compilation error when not in simulator

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 5 tahun lalu
induk
melakukan
733ae3323e
1 mengubah file dengan 2 tambahan dan 4 penghapusan
  1. 2 4
      iOSClient/Main/Menu/AppDelegate+Menu.swift

+ 2 - 4
iOSClient/Main/Menu/AppDelegate+Menu.swift

@@ -59,11 +59,9 @@ extension AppDelegate {
 
         #if !targetEnvironment(simulator)
             if #available(iOS 11.0, *) {
-                actions.append(MenuAction(title: NSLocalizedString("_scans_document_", comment: ""), icon: CCGraphics.changeThemingColorImage(UIImage.init(named: "scan"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon)), action: { menuAction in
-                        if #available(iOS 11.0, *) {
+                actions.append(MenuAction(title: NSLocalizedString("_scans_document_", comment: ""), icon: CCGraphics.changeThemingColorImage(UIImage.init(named: "scan"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon), action: { menuAction in
                             NCCreateScanDocument.sharedInstance.openScannerDocument(viewController: appDelegate.activeMain)
-                        }
-                    })
+                    }))
             }
         #endif