[Now Playing Spam] Don't crash if nothing playing
Don't crash on now playing spam hotkey if no track is currently playing. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
c2388d2659
commit
cd14377dcd
|
@ -285,11 +285,14 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
|
|||
}
|
||||
|
||||
- (IBAction)spam:(id)sender {
|
||||
NSPasteboard *pboard = [NSPasteboard generalPasteboard];
|
||||
PlaylistEntry *pe = [playlistController currentEntry];
|
||||
if(pe) {
|
||||
NSPasteboard *pboard = [NSPasteboard generalPasteboard];
|
||||
|
||||
[pboard clearContents];
|
||||
[pboard clearContents];
|
||||
|
||||
[pboard writeObjects:@[[[playlistController currentEntry] spam]]];
|
||||
[pboard writeObjects:@[[pe spam]]];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)eventSeekForward:(id)sender {
|
||||
|
|
Loading…
Reference in New Issue