summaryrefslogtreecommitdiff
path: root/src/components/Content.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-10 09:53:55 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-10 09:53:55 -0400
commite6efa4f0ff32d520982860180a29472068aab8e2 (patch)
tree62bddad9b84238c519bbe840cde36d5b78090e01 /src/components/Content.tsx
parent840ea2802551a786de9b59f7aa00f04c5f335e2a (diff)
downloaddecky-lsfg-vk-e6efa4f0ff32d520982860180a29472068aab8e2.tar.gz
decky-lsfg-vk-e6efa4f0ff32d520982860180a29472068aab8e2.zip
simplify unhooked game behavior on mount
Diffstat (limited to 'src/components/Content.tsx')
-rw-r--r--src/components/Content.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/Content.tsx b/src/components/Content.tsx
index e5216ca..578f984 100644
--- a/src/components/Content.tsx
+++ b/src/components/Content.tsx
@@ -56,15 +56,15 @@ export function Content() {
setTab("Setup");
return;
}
- setTab((current) => current === "Setup" ? (runningGame ? "NowPlaying" : "Games") : current);
- }, [runningGame?.appid, setupComplete]);
+ setTab((current) => current === "Setup" ? (runningGame?.configured ? "NowPlaying" : "Games") : current);
+ }, [runningGame?.appid, runningGame?.configured, setupComplete]);
useEffect(() => {
if (!setupComplete) return;
const appid = runningGame?.appid || null;
const previous = previousRunningAppId.current;
previousRunningAppId.current = appid;
- if (appid && appid !== previous) setTab("NowPlaying");
+ if (appid && appid !== previous) setTab(runningGame?.configured ? "NowPlaying" : "Games");
else if (!appid && previous) {
setTab((current) => current === "NowPlaying" ? "Games" : current);
}
@@ -96,7 +96,7 @@ export function Content() {
const tabs = setupComplete
? [
- ...(runningGame ? [{
+ ...(runningGame?.configured ? [{
id: "NowPlaying",
title: tabIcons.nowPlaying,
content: (
@@ -104,7 +104,6 @@ export function Content() {
game={runningGame}
config={config}
onConfigChange={(field, value) => handleConfigChange(field, value)}
- onEnable={enable}
onRepair={repair}
/>
),