fix: discord presence not clearing after pausing player (#973)

* add show rich presence when paused option
This commit is contained in:
Lyall 2025-06-28 21:46:12 +01:00 committed by GitHub
parent d922d8b034
commit b6d902e425
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 2 deletions

View file

@ -74,6 +74,29 @@ export const DiscordSettings = () => {
postProcess: 'sentenceCase',
}),
},
{
control: (
<Switch
checked={settings.showPaused}
onChange={(e) => {
setSettings({
discord: {
...settings,
showPaused: e.currentTarget.checked,
},
});
}}
/>
),
description: t('setting.discordPausedStatus', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron(),
title: t('setting.discordPausedStatus', {
postProcess: 'sentenceCase',
}),
},
{
control: (
<Switch