瀏覽代碼

iOS: Passcode setting off on cancel (closes #18137)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Soomin Lee 8 年之前
父節點
當前提交
7b6d638440
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Sources/VLCSettingsController.m

+ 3 - 0
Sources/VLCSettingsController.m

@@ -94,6 +94,9 @@
 - (void)PAPasscodeViewControllerDidCancel:(PAPasscodeViewController *)controller
 {
     [[VLCKeychainCoordinator defaultCoordinator] setPasscode:nil];
+
+    //Set manually the value to NO to disable the UISwitch.
+    [[NSUserDefaults standardUserDefaults] setBool:NO forKey:kVLCSettingPasscodeOnKey];
     [self didChangePasscodeStatus:NO];
 
     [controller dismissViewControllerAnimated:YES completion:nil];