Skip to content

Commit

Permalink
Don't set albumArt to nil after delivering notification. #10
Browse files Browse the repository at this point in the history
Instead, set it to nil on play state change if the track has changed. This should make album art available to notifications delivered on shortcut presses.
  • Loading branch information
citruspi committed Dec 31, 2013
1 parent 3d5bd54 commit 4b47903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Spotify Notifications/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ - (void)eventOccured:(NSNotification *)notification {
if (![previousTrack isEqualToString:track.trackID] || [self getProperty:@"showTracks"] == 0) {

previousTrack = track.trackID;
track.albumArt = nil;

if (track.trackID) {

Expand Down Expand Up @@ -223,7 +224,6 @@ - (void)eventOccured:(NSNotification *)notification {
}

[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
track.albumArt = nil;

}
}
Expand Down

0 comments on commit 4b47903

Please sign in to comment.