Clear stopAfter status when changing the song. Fixed bug where status wasn't dependant on stopAfter.
parent
3cdca94207
commit
d7826ee144
|
@ -558,6 +558,7 @@
|
|||
- (void)setCurrentEntry:(PlaylistEntry *)pe
|
||||
{
|
||||
currentEntry.current = NO;
|
||||
currentEntry.stopAfter = NO;
|
||||
|
||||
pe.current = YES;
|
||||
|
||||
|
@ -697,7 +698,7 @@
|
|||
if (action == @selector(emptyQueueList:) && ([queueList count] < 1))
|
||||
return NO;
|
||||
|
||||
if (action == @selector(stopAfterCurrent:) && !currentEntry.stopAfter)
|
||||
if (action == @selector(stopAfterCurrent:) && currentEntry.stopAfter)
|
||||
return NO;
|
||||
|
||||
// if nothing is selected, gray out these
|
||||
|
|
|
@ -68,12 +68,12 @@
|
|||
|
||||
+ (NSSet *)keyPathsForValuesAffectingStatus
|
||||
{
|
||||
return [NSSet setWithObjects:@"current",@"queued", @"error", nil];
|
||||
return [NSSet setWithObjects:@"current",@"queued", @"error", @"stopAfter", nil];
|
||||
}
|
||||
|
||||
+ (NSSet *)keyPathsForValuesAffectingStatusMessage
|
||||
{
|
||||
return [NSSet setWithObjects:@"current", @"queued", @"queuePosition", @"error", @"errorMessage", nil];
|
||||
return [NSSet setWithObjects:@"current", @"queued", @"queuePosition", @"error", @"errorMessage", @"stopAfter", nil];
|
||||
}
|
||||
|
||||
- (void)setProperties:(NSDictionary *)properties
|
||||
|
|
Loading…
Reference in New Issue