[Slim-Checkins] r12349 - /trunk/server/Slim/Utils/Prefs/Base.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Thu Jul 5 16:21:18 PDT 2007


Author: andy
Date: Thu Jul  5 16:21:18 2007
New Revision: 12349

URL: http://svn.slimdevices.com?rev=12349&view=rev
Log:
Create pref timestamp during init(), remove it during remove()

Modified:
    trunk/server/Slim/Utils/Prefs/Base.pm

Modified: trunk/server/Slim/Utils/Prefs/Base.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Utils/Prefs/Base.pm?rev=12349&r1=12348&r2=12349&view=diff
==============================================================================
--- trunk/server/Slim/Utils/Prefs/Base.pm (original)
+++ trunk/server/Slim/Utils/Prefs/Base.pm Thu Jul  5 16:21:18 2007
@@ -161,6 +161,8 @@
 					   " to " . (defined $value ? $value : 'undef'));
 
 			$class->{'prefs'}->{ $pref } = $value;
+			
+			$class->{'prefs'}->{ '_ts_' . $pref } = time();
 		}
 	}
 
@@ -180,7 +182,9 @@
 
 		$log->info("removing " . $class->_root->{'namespace'} . ":" . ($class->{'clientid'} || '') . ":" . $pref);
 
-		delete ($class->{'prefs'}->{ $pref });
+		delete $class->{'prefs'}->{ $pref };
+		
+		delete $class->{'prefs'}->{ '_ts_' . $pref };
 	}
 
 	$class->_root->save;



More information about the checkins mailing list