CC-4954: Please make Library page remember the status per user

-done
This commit is contained in:
denise 2013-02-19 10:58:48 -05:00
parent 9715a9ad6d
commit d1301ff676
5 changed files with 72 additions and 4 deletions

View file

@ -1262,7 +1262,19 @@ class Application_Model_Preference
$data = self::getValue("nowplaying_screen", true);
return ($data != "") ? unserialize($data) : null;
}
public static function setLibraryScreenSettings($settings)
{
$data = serialize($settings);
self::setValue("library_screen", $data, true);
}
public static function getLibraryScreenSettings()
{
$data = self::getValue("library_screen", true);
return ($data != "") ? unserialize($data) : null;
}
public static function SetEnableReplayGain($value) {
self::setValue("enable_replay_gain", $value, false);
}