CC-3626 : Playlist Builder -> you can not add files from Library by using "+" button (if default Fades were changed in Preferences)
This commit is contained in:
parent
169a4827e4
commit
ef908ee894
|
@ -151,7 +151,14 @@ class Application_Model_Preference
|
|||
}
|
||||
|
||||
public static function GetDefaultFade() {
|
||||
return self::GetValue("default_fade");
|
||||
$fade = self::GetValue("default_fade");
|
||||
|
||||
if ($fade === "") {
|
||||
return null;
|
||||
}
|
||||
|
||||
$fade = number_format($fade, 6);
|
||||
return $fade;
|
||||
}
|
||||
|
||||
public static function SetDefaultTransitionFade($fade) {
|
||||
|
|
|
@ -132,7 +132,7 @@ class Application_Model_Scheduler {
|
|||
$data["cueout"] = $file->getDbLength();
|
||||
|
||||
$defaultFade = Application_Model_Preference::GetDefaultFade();
|
||||
if ($defaultFade !== "") {
|
||||
if (isset($defaultFade)) {
|
||||
//fade is in format SS.uuuuuu
|
||||
$data["fadein"] = $defaultFade;
|
||||
$data["fadeout"] = $defaultFade;
|
||||
|
|
Loading…
Reference in New Issue