Explorar o código

Improvements

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana %!s(int64=3) %!d(string=hai) anos
pai
achega
f68626a941
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)