Преглед на файлове

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)