Bug 15910 - Alarm screensaver setting does not work
: Alarm screensaver setting does not work
Status: CLOSED FIXED
Product: SB Boom
Classification: Unclassified
Component: UI
: 50
: PC Windows (legacy)
: P3 normal (vote)
: 7.5.0
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-17 14:53 UTC by Cory Nielsen
Modified: 2011-03-16 04:45 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Nielsen 2010-03-17 14:53:39 UTC
Whether set on the device or using SB Server, the setting "RSS News Ticker" does not work as a screensaver when alarm is playing. It appears that the setting for "Screensaver when playing" is used instead.
Comment 1 Michael Herger 2010-03-18 00:13:32 UTC
There's no alarm screensaver setting available (yet). I thought there was such an enhancement request already, but can't find it.
Comment 2 Chris Owens 2010-03-29 09:08:36 UTC
Michael notes that we need a way to make the RSS screensaver not show up in the preferences list.
Comment 3 Michael Herger 2010-03-29 21:53:05 UTC
This actually is a regression and is not related to the RSS reader: the setting is simply ignored.
Comment 4 Michael Herger 2010-03-29 22:09:41 UTC
We need to pass the $client along to the alarmScreensaver() function, or it won't be able to read the saver pref:

Index: server/Slim/Utils/Alarm.pm
===================================================================
--- server/Slim/Utils/Alarm.pm	(revision 30411)
+++ server/Slim/Utils/Alarm.pm	(working copy)
@@ -1833,7 +1833,7 @@
 	my $client = shift;
 
 	my $currentMode = Slim::Buttons::Common::mode($client);
-	my $alarmScreensaver = $class->alarmScreensaver;
+	my $alarmScreensaver = $class->alarmScreensaver($client);
 	if ($client->display->isa('Slim::Display::NoDisplay')) {
 		$alarmScreensaver = undef;
 	}
@@ -1864,7 +1864,7 @@
 
 	my $currentMode = Slim::Buttons::Common::mode($client);
 	main::DEBUGLOG && $log->debug("Attempting to pop alarm screensaver.  Current mode: $currentMode");
-	if ($currentMode eq $class->alarmScreensaver) {
+	if ($currentMode eq $class->alarmScreensaver($client)) {
 		main::DEBUGLOG && $log->debug('Popping alarm screensaver');
 		Slim::Buttons::Common::popMode($client);
 	}
Comment 5 SVN Bot 2010-03-29 22:16:07 UTC
 == Auto-comment from SVN commit #30426 to the slim repo by mherger ==
 == https://svn.slimdevices.com/slim?view=revision&revision=30426 ==

Fixed Bug: 15910
Description: We need to pass the $client along to the alarmScreensaver() function, or it won't be able to read the saver pref.
Comment 6 Cory Nielsen 2010-03-31 15:35:42 UTC
Fix verified in r30438.