Bug 9074 - Button add (+) doesn't clear current playlist anymore
: Button add (+) doesn't clear current playlist anymore
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Playlists
: 7.2
: PC Other
: -- normal (vote)
: 7.x
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-08 01:31 UTC by Felix Mueller
Modified: 2009-09-08 09:27 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
restore shortcut (880 bytes, patch)
2008-08-08 10:18 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Mueller 2008-08-08 01:31:08 UTC
While in the top level of the player UI (when it reads Home - Now Playing 1 of x) it is no longer possible to clear the current playlist by pressing add (+) on either the remote or front panel button.

The only thing that happens is the same as pressing right on the remote - one gets transferred to the current playlist.

BTW: While in current playlist, pressing add (+) still removes one song just fine.
Comment 1 Adrian Smith 2008-08-08 09:02:20 UTC
by request - bug 8929
Comment 2 Felix Mueller 2008-08-08 09:10:34 UTC
well, in that other bug Dean says: "ADD can also go right, if there's no other function specified..."

I believe in that specific situation ADD did clear the complete playlist.

Don't get me wrong, if we have decided to remove that functionality, that's fine with me. I only realized it, because I often was clearing the playlist like this.

Comment 3 Blackketter Dean 2008-08-08 09:35:56 UTC
Ah, I forgot about that shortcut.  People do use it (and I think it's in the user guide.)  Let's fix.
Comment 4 Adrian Smith 2008-08-08 10:11:17 UTC
Just revert the add functionality or the play functionality too - as I think the same case will be true of people being used to the old operation?

For reference the old code is:
		'add' => sub  {
			my $client = shift;
		
			if ($client->curSelection($client->curDepth()) eq 'NOW_PLAYING') {

				$client->showBriefly( {
					'line' => [ "", $client->string('CLEARING_PLAYLIST') ]
				});
				$client->execute(['playlist', 'clear']);

			} else {

				Slim::Buttons::Common::pushModeLeft($client,'playlist');
			}	
		},

		'play' => sub  {
			my $client = shift;

			my $selection = $client->curSelection($client->curDepth());
			if ($selection eq 'NOW_PLAYING') {

				$client->execute(['play']);

				Slim::Buttons::Common::pushModeLeft($client, 'playlist');

			} elsif ($selection eq 'SAVED_PLAYLISTS'
						|| ($selection =~ /^BROWSE_/
							&& $selection ne 'BROWSE_MUSIC')) {
							
				# If we're in a Browse mode and the user
				# presses play, just go right, per Dean
				Slim::Buttons::Input::List::exitInput($client, 'right');

			} else {

				Slim::Buttons::Common::pushModeLeft($client, 'playlist');
			}
		},
Comment 5 KDF 2008-08-08 10:18:14 UTC
Created attachment 3763 [details]
restore shortcut

just restores the 'add' shortcut when on the Now Playing item in the top level.
Comment 6 Blackketter Dean 2008-08-08 10:27:05 UTC
Excellent.  Will you commit?
Comment 7 KDF 2008-08-08 10:36:13 UTC
done, change 22481.  no changelog entry as the bug was within 7.2 only.
Comment 8 James Richardson 2008-08-26 15:51:12 UTC
Verified fixed in
SqueezeCenter 7.2-22900
Comment 9 James Richardson 2008-12-15 12:34:46 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 10 Chris Owens 2009-07-31 10:26:46 UTC
Reduce number of active targets for SC