[Slim-Checkins] r8778 - /trunk/server/Slim/Buttons/Home.pm
dsully at svn.slimdevices.com
dsully at svn.slimdevices.com
Thu Aug 3 12:52:26 PDT 2006
Author: dsully
Date: Thu Aug 3 12:52:25 2006
New Revision: 8778
URL: http://svn.slimdevices.com?rev=8778&view=rev
Log:
Bug: N/A
Description: Whitespace Cleanup
Modified:
trunk/server/Slim/Buttons/Home.pm
Modified: trunk/server/Slim/Buttons/Home.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Buttons/Home.pm?rev=8778&r1=8777&r2=8778&view=diff
==============================================================================
--- trunk/server/Slim/Buttons/Home.pm (original)
+++ trunk/server/Slim/Buttons/Home.pm Thu Aug 3 12:52:25 2006
@@ -470,23 +470,20 @@
# disregarding home menu settings.
sub jumpToMenu {
my $client = shift;
- my $menu = shift;
- my $depth = shift;
-
- $depth = "" unless defined $depth;
-
+ my $menu = shift;
+ my $depth = shift;
+
+ if (!defined $depth) {
+ $depth = '';
+ }
+
$client->curDepth($depth);
- $client->curSelection($client->curDepth(),$menu);
+ $client->curSelection($client->curDepth, $menu);
my $nextParams = Slim::Buttons::Home::getNextList($client);
-
if (exists $nextParams->{'listRef'}) {
- Slim::Buttons::Common::pushModeLeft(
- $client,
- 'INPUT.List',
- $nextParams,
- );
+ Slim::Buttons::Common::pushModeLeft($client, 'INPUT.List', $nextParams);
} else {
homeExitHandler($client,"RIGHT");
}
@@ -494,18 +491,23 @@
sub homeheader {
my $client = $_[0];
- my $line1;
-
+
if ($client->isa("Slim::Player::SLIMP3")) {
- $line1 = $client->string('SLIMP3_HOME');
+
+ return $client->string('SLIMP3_HOME');
+
} elsif ($client->isa("Slim::Player::SoftSqueeze")) {
- $line1 = $client->string('SOFTSQUEEZE_HOME');
+
+ return $client->string('SOFTSQUEEZE_HOME');
+
} elsif ($client->isa("Slim::Player::Transporter")) {
- $line1 = $client->string('TRANSPORTER_HOME');
+
+ return $client->string('TRANSPORTER_HOME');
+
} else {
- $line1 = $client->string('SQUEEZEBOX_HOME');
- }
- return $line1;
+
+ return $client->string('SQUEEZEBOX_HOME');
+ }
}
#######
More information about the checkins
mailing list