summaryrefslogtreecommitdiff
path: root/src/components/Content.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Content.tsx')
-rw-r--r--src/components/Content.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/Content.tsx b/src/components/Content.tsx
index ffb6eef..241ab92 100644
--- a/src/components/Content.tsx
+++ b/src/components/Content.tsx
@@ -45,6 +45,7 @@ function usePersistentBoolean(key: string, defaultValue: boolean) {
export function Content() {
const {
config,
+ runningConfig,
targets,
runningGame,
setSelectedAppId,
@@ -135,8 +136,10 @@ export function Content() {
const nowPlaying = runningGame?.configured ? (
<NowPlayingTab
game={runningGame}
- config={config}
- onConfigChange={(field, value) => handleConfigChange(field, value)}
+ config={runningConfig}
+ onConfigChange={async (field, value) => {
+ await save({ ...runningConfig, [field]: value }, true);
+ }}
/>
) : runningFlatpak ? (
<FlatpakNowPlayingTab