mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
[crossfade] fix options not saving as numbers
This commit is contained in:
@ -52,7 +52,7 @@ async function promptCrossfadeValues(win, options) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Fade scaling",
|
label: "Fade scaling",
|
||||||
selectOptions: { linear: "Linear", exponential: "Exponential" },
|
selectOptions: { linear: "Linear", logarithmic: "Logarithmic" },
|
||||||
value: options.fadeScaling || defaultOptions.fadeScaling,
|
value: options.fadeScaling || defaultOptions.fadeScaling,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -64,9 +64,9 @@ async function promptCrossfadeValues(win, options) {
|
|||||||
).catch(console.error);
|
).catch(console.error);
|
||||||
if (!res) return undefined;
|
if (!res) return undefined;
|
||||||
return {
|
return {
|
||||||
fadeInDuration: res[0],
|
fadeInDuration: Number(res[0]),
|
||||||
fadeOutDuration: res[1],
|
fadeOutDuration: Number(res[1]),
|
||||||
exitMusicBeforeEnd: res[2],
|
exitMusicBeforeEnd: Number(res[2]),
|
||||||
fadeScaling: res[3],
|
fadeScaling: res[3],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user