From bc9d9458b4dd474f5e14a49c28498d24e46a4735 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Fri, 18 Oct 2013 06:36:19 -0700 Subject: [PATCH] Added a stop button to the play controls, handy for when playing a stream, which shouldn't really be paused. Also handy for other reasons. --- English.lproj/MainMenu.xib | 105 ++++++++++++++++++++----------------- Window/PlaybackButtons.m | 6 ++- 2 files changed, 61 insertions(+), 50 deletions(-) diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index a4b9f8c50..86c262bd9 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -17,15 +17,15 @@ - + - + - + @@ -41,24 +41,24 @@ - + - + - + - + - + @@ -85,7 +85,7 @@ - + @@ -98,7 +98,7 @@ - + @@ -120,7 +120,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -164,7 +164,7 @@ - + @@ -185,7 +185,7 @@ - + @@ -202,7 +202,7 @@ - + @@ -220,7 +220,7 @@ - + @@ -306,7 +306,7 @@ - + @@ -328,17 +328,20 @@ - - + + - + - + + + + @@ -379,19 +382,19 @@ - - artist contains[cd] $value Album + artist contains[cd] $value + - - genre contains[cd] $value Genre + genre contains[cd] $value + @@ -600,17 +603,20 @@ - - + + - + - + + + + @@ -1099,8 +1105,8 @@ NSIsNotNil - + @@ -1150,8 +1156,8 @@ CA NSIsNotNil - + @@ -1200,11 +1206,11 @@ CA - + RepeatAllTransformer - + @@ -1226,11 +1232,11 @@ CA - + RepeatOneTransformer - + @@ -1241,11 +1247,11 @@ CA - + RepeatNoneTransformer - + @@ -1491,11 +1497,11 @@ Gw - + Not Playing - Not Playing + @@ -1505,11 +1511,11 @@ Gw - + Not Playing - Not Playing + @@ -1632,8 +1638,8 @@ Gw NSIsNotNil - + @@ -1647,8 +1653,8 @@ Gw NSIsNotNil - + @@ -1665,8 +1671,8 @@ Gw NSIsNotNil - + @@ -1680,8 +1686,8 @@ Gw NSIsNotNil - + @@ -1693,10 +1699,10 @@ Gw - + - + NSIsNotNil @@ -1730,7 +1736,7 @@ Gw - + @@ -1786,7 +1792,7 @@ Gw - + YnBsaXN0MDDUAQIDBAUGRkdYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK8QDwcI ExQZHh8qKyw0NzpAQ1UkbnVsbNUJCgsMDQ4PEBESVk5TU2l6ZVYkY2xhc3NcTlNJbWFnZUZsYWdzVk5T @@ -1882,6 +1888,7 @@ Ek0SVRJYEmoSbRJyAAAAAAAAAgEAAAAAAAAASgAAAAAAAAAAAAAAAAAAEnQ + \ No newline at end of file diff --git a/Window/PlaybackButtons.m b/Window/PlaybackButtons.m index 9c10547fc..a93de9c62 100644 --- a/Window/PlaybackButtons.m +++ b/Window/PlaybackButtons.m @@ -75,7 +75,11 @@ static NSString *PlaybackButtonsPlaybackStatusObservationContext = @"PlaybackBut { [playbackController playPauseResume:self]; } - else if (clickedSegment == 2) //Next + else if (clickedSegment == 2) //Stop + { + [playbackController stop:self]; + } + else if (clickedSegment == 3) //Next { [playbackController next:self]; }