Commit 1d3b4b44 authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Simplify setIsTimeRemaining property setter



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <developer@claudiocambra.com>
parent 5bc13bb5
......@@ -60,12 +60,10 @@ NSString *VLCTimeFieldDisplayTimeAsRemaining = @"DisplayTimeAsTimeRemaining";
- (void)setIsTimeRemaining:(BOOL)isTimeRemaining
{
_isTimeRemaining = isTimeRemaining;
if (_identifier) {
_isTimeRemaining = [[NSUserDefaults standardUserDefaults] boolForKey:_identifier];
_isTimeRemaining = !_isTimeRemaining;
[[NSUserDefaults standardUserDefaults] setObject:(_isTimeRemaining ? @"YES" : @"NO") forKey:_identifier];
} else {
_isTimeRemaining = !_isTimeRemaining;
}
[self updateTimeValue];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment