浏览代码

Improvements

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 年之前
父节点
当前提交
f68626a941
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      iOSClient/AppDelegate.swift

+ 2 - 1
iOSClient/AppDelegate.swift

@@ -297,7 +297,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
        
     private func showPrivacyProtectionWindow() {
         
-        if !CCUtility.getPrivacyScreenEnabled() { return }
+        guard CCUtility.getPrivacyScreenEnabled() else { return }
+        
         if CCUtility.isPasscodeAtStartEnabled() { return }
         
         privacyProtectionWindow = UIWindow(frame: UIScreen.main.bounds)