Bläddra i källkod

Improvements

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 år sedan
förälder
incheckning
a29a555448
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      iOSClient/AppDelegate.swift

+ 4 - 1
iOSClient/AppDelegate.swift

@@ -743,10 +743,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                 
         // Dismiss present window?.rootViewController? [ONLY PASSCODE]
         let presentedViewController = window?.rootViewController?.presentedViewController
-        if !(presentedViewController is NCLoginNavigationController) {
+        if presentedViewController is NCLoginNavigationController {
+            return
+        } else {
             presentedViewController?.dismiss(animated: false)
         }
         
+        
         let passcodeViewController = TOPasscodeViewController.init(passcodeType: .sixDigits, allowCancel: false)
         passcodeViewController.delegate = self
         passcodeViewController.keypadButtonShowLettering = false