浏览代码

Improvements

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 年之前
父节点
当前提交
a29a555448
共有 1 个文件被更改,包括 4 次插入1 次删除
  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