add ability to configure double click behavior

This commit is contained in:
Kendall Garner 2024-08-19 21:56:55 -07:00
parent 94edda1856
commit 88741a8616
No known key found for this signature in database
GPG key ID: 18D2767419676C87
4 changed files with 36 additions and 2 deletions

View file

@ -233,6 +233,28 @@ export const ControlSettings = () => {
isHidden: false,
title: t('setting.playButtonBehavior', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
aria-label="Whether double clicking a track should queue all matching songs"
defaultChecked={settings.doubleClickQueueAll}
onChange={(e) =>
setSettings({
general: {
...settings,
doubleClickQueueAll: e.currentTarget.checked,
},
})
}
/>
),
description: t('setting.doubleClickBehavior', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: false,
title: t('setting.doubleClickBehavior', { postProcess: 'sentenceCase' }),
},
{
control: (
<Select