Skip to next on trash, else stop playback
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
2e1460f72d
commit
2e52066293
1 changed files with 6 additions and 2 deletions
|
@ -735,8 +735,12 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
|
|
||||||
if([indexes containsIndex:currentEntry.index]) {
|
if([indexes containsIndex:currentEntry.index]) {
|
||||||
[self updateNextAfterDeleted:currentEntry withDeleteIndexes:indexes];
|
[self updateNextAfterDeleted:currentEntry withDeleteIndexes:indexes];
|
||||||
|
if(nextEntryAfterDeleted) {
|
||||||
[playbackController playEntry:nextEntryAfterDeleted];
|
[playbackController playEntry:nextEntryAfterDeleted];
|
||||||
nextEntryAfterDeleted = nil;
|
nextEntryAfterDeleted = nil;
|
||||||
|
} else {
|
||||||
|
[playbackController stop:nil];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[[SQLiteStore sharedStore] playlistRemoveTracksAtIndexes:unarrangedIndexes
|
[[SQLiteStore sharedStore] playlistRemoveTracksAtIndexes:unarrangedIndexes
|
||||||
|
|
Loading…
Reference in a new issue