You need a screensaver specific function hash which defines what to do
when leaving the screensaver:
Code:
--------------------
our %screensaverFunctions = (
'done' => sub {
my ($client ,$funct ,$functarg) = @_;
Slim::Buttons::Common::popMode($client);
$client->update();
# pass along ir code to new mode if requested
if (defined $functarg && $functarg eq 'passback') {
Slim::Hardware::IR::resendButton($client);
}
},
);
sub getSaverFunctions {
return \%screensaverFunctions;
}
sub screenSaver {
Slim::Buttons::Common::addSaver('SCREENSAVER.TMS',
getSaverFunctions(),
\&setScreenSaverMode,
undef,
'PLUGIN_TMS',
);
}
--------------------
I also found there is a trailing character in $lines which shows up on
graphics players as a radio button, so I added:
Code:
--------------------
$lines =~ s/\cM//g;
--------------------
just after $lines is defined
--
Triode
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=30022
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins