mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +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",
|
||||
selectOptions: { linear: "Linear", exponential: "Exponential" },
|
||||
selectOptions: { linear: "Linear", logarithmic: "Logarithmic" },
|
||||
value: options.fadeScaling || defaultOptions.fadeScaling,
|
||||
},
|
||||
],
|
||||
@ -64,9 +64,9 @@ async function promptCrossfadeValues(win, options) {
|
||||
).catch(console.error);
|
||||
if (!res) return undefined;
|
||||
return {
|
||||
fadeInDuration: res[0],
|
||||
fadeOutDuration: res[1],
|
||||
exitMusicBeforeEnd: res[2],
|
||||
fadeInDuration: Number(res[0]),
|
||||
fadeOutDuration: Number(res[1]),
|
||||
exitMusicBeforeEnd: Number(res[2]),
|
||||
fadeScaling: res[3],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user