Allow navigating directly to playlist song view

This commit is contained in:
jeffvli 2023-07-15 15:57:40 -07:00
parent d64040f3f0
commit 3dcb0dc4ed
6 changed files with 58 additions and 13 deletions

View file

@ -195,6 +195,26 @@ export const ControlSettings = () => {
isHidden: !isElectron(),
title: 'Save play queue',
},
{
control: (
<Switch
aria-label="Go to playlist songs page by default"
defaultChecked={settings.defaultFullPlaylist}
onChange={(e) =>
setSettings({
general: {
...settings,
defaultFullPlaylist: e.currentTarget.checked,
},
})
}
/>
),
description:
'When navigating to a playlist, go to the playlist song list page instead of the default page',
isHidden: false,
title: 'Go to playlist songs page by default',
},
];
return <SettingsSection options={controlOptions} />;