marinofaggiana 4 жил өмнө
parent
commit
ffcaf6ddef

+ 5 - 0
Share/NCShareExtension.swift

@@ -135,6 +135,11 @@ class NCShareExtension: UIViewController, NCListCellDelegate, NCEmptyDataSetDele
         if serverUrl == "" {
         
             guard let activeAccount = NCManageDatabase.shared.getActiveAccount() else {
+                
+//                let alertController = UIAlertController(title: NSLocalizedString("_error_", comment: ""), message: errorDescription, preferredStyle: .alert)
+//                alertController.addAction(UIAlertAction(title: NSLocalizedString("_ok_", comment: ""), style: .default, handler: { _ in }))
+//                self.present(alertController, animated: true)
+                
                 extensionContext?.completeRequest(returningItems: extensionContext?.inputItems, completionHandler: nil)
                 return
             }

+ 1 - 1
iOSClient/BrowserWeb/NCBrowserWeb.swift

@@ -24,7 +24,7 @@
 import Foundation
 import WebKit
 
-@objc protocol NCBrowserWebDelegate: class {
+@objc protocol NCBrowserWebDelegate: AnyObject {
     @objc optional func browserWebDismiss()
 }
 

+ 1 - 1
iOSClient/Main/AudioRecorder/NCAudioRecorderViewController.swift

@@ -29,7 +29,7 @@ import UIKit
 import AVFoundation
 import QuartzCore
 
-@objc protocol NCAudioRecorderViewControllerDelegate : class {
+@objc protocol NCAudioRecorderViewControllerDelegate : AnyObject {
     func didFinishRecording(_ viewController: NCAudioRecorderViewController, fileName: String)
     func didFinishWithoutRecording(_ viewController: NCAudioRecorderViewController, fileName: String)
 }