CC-4954: Please make Library page remember the status per user
-done
This commit is contained in:
parent
9715a9ad6d
commit
d1301ff676
5 changed files with 72 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue