Browse Source

Improvements

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 years ago
parent
commit
a29a555448
1 changed files with 4 additions and 1 deletions
  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]
         // Dismiss present window?.rootViewController? [ONLY PASSCODE]
         let presentedViewController = window?.rootViewController?.presentedViewController
         let presentedViewController = window?.rootViewController?.presentedViewController
-        if !(presentedViewController is NCLoginNavigationController) {
+        if presentedViewController is NCLoginNavigationController {
+            return
+        } else {
             presentedViewController?.dismiss(animated: false)
             presentedViewController?.dismiss(animated: false)
         }
         }
         
         
+        
         let passcodeViewController = TOPasscodeViewController.init(passcodeType: .sixDigits, allowCancel: false)
         let passcodeViewController = TOPasscodeViewController.init(passcodeType: .sixDigits, allowCancel: false)
         passcodeViewController.delegate = self
         passcodeViewController.delegate = self
         passcodeViewController.keypadButtonShowLettering = false
         passcodeViewController.keypadButtonShowLettering = false