Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
af2b1036
Commit
af2b1036
authored
May 20, 2013
by
Felix Paul Kühne
Browse files
save defaults when changing them
parent
952f8d77
Changes
2
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCPasscodeLockViewController.m
View file @
af2b1036
...
...
@@ -61,6 +61,7 @@
NSUserDefaults
*
defaults
;
[
defaults
setObject
:
@1
forKey
:
@"PasscodeProtection"
];
[
defaults
setObject
:
_tmpPasscode
forKey
:
@"Passcode"
];
[
defaults
synchronize
];
_passcode
=
_tmpPasscode
;
_resetStage
=
0
;
appDelegate
.
playlistViewController
.
nextPasscodeCheckDate
=
[
NSDate
dateWithTimeIntervalSinceNow
:
300
];
// five min
...
...
AspenProject/VLCSettingsViewController.m
View file @
af2b1036
...
...
@@ -46,8 +46,11 @@
}
[
self
.
view
addSubview
:
appDelegate
.
playlistViewController
.
passcodeLockViewController
.
view
];
[
appDelegate
.
playlistViewController
.
passcodeLockViewController
resetPasscode
];
}
else
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
@0
forKey
:
@"PasscodeProtection"
];
}
else
{
NSUserDefaults
*
defaults
=
[
NSUserDefaults
standardUserDefaults
];
[
defaults
setObject
:
@0
forKey
:
@"PasscodeProtection"
];
[
defaults
synchronize
];
}
}
-
(
IBAction
)
dismiss
:(
id
)
sender
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment