Add option to show playing icon in Discord RPC (#1699)

* feat: add option to show playing/paused icon in Discord RPC
This commit is contained in:
York
2026-02-12 13:14:58 +08:00
committed by GitHub
parent 91e7c7434c
commit 9cde569c7d
4 changed files with 45 additions and 4 deletions
@@ -98,6 +98,28 @@ export const DiscordSettings = memo(() => {
postProcess: 'sentenceCase',
}),
},
{
control: (
<Switch
checked={settings.showStateIcon}
onChange={(e) => {
setSettings({
discord: {
showStateIcon: e.currentTarget.checked,
},
});
}}
/>
),
description: t('setting.discordStateIcon', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: !isElectron(),
title: t('setting.discordStateIcon', {
postProcess: 'sentenceCase',
}),
},
{
control: (
<Switch