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

#1730

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 жил өмнө
parent
commit
3486dd182e

+ 1 - 10
iOSClient/Login/NCLogin.swift

@@ -119,9 +119,7 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
             // Cancel Button
             let navigationItemCancel = UIBarButtonItem.init(barButtonSystemItem: .stop, target: self, action: #selector(self.actionCancel))
             navigationItemCancel.tintColor = textColor
-            navigationItem.leftBarButtonItem = navigationItemCancel
-            
-            NotificationCenter.default.addObserver(self, selector: #selector(applicationDidEnterBackground), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationDidEnterBackground), object: nil)
+            navigationItem.leftBarButtonItem = navigationItemCancel            
         }
         
         self.navigationController?.navigationBar.setValue(true, forKey: "hidesShadow")
@@ -143,13 +141,6 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
         appDelegate.startTimerErrorNetworking()
     }
     
-    // MARK: - NotificationCenter
-
-    @objc func applicationDidEnterBackground() {
-        
-        dismiss(animated: false)
-    }
-    
     // MARK: - TextField
     
     func textFieldShouldReturn(_ textField: UITextField) -> Bool {