summaryrefslogtreecommitdiff
path: root/src/index.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-01-23 19:55:32 -0500
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-01-23 19:55:32 -0500
commitdba49f035b5dd0259c3fc3fa2da4aadd3bb9985b (patch)
treec662db39f3ef0ffb9d12307f4e45b46913da233a /src/index.tsx
parent049b5f3d4ce58cb067c9ec44d222e059c295861e (diff)
downloadDecky-Framegen-dba49f035b5dd0259c3fc3fa2da4aadd3bb9985b.tar.gz
Decky-Framegen-dba49f035b5dd0259c3fc3fa2da4aadd3bb9985b.zip
updated readme
Diffstat (limited to 'src/index.tsx')
-rwxr-xr-xsrc/index.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 6992b23..b20bf59 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -174,7 +174,9 @@ function MainRunningApp() {
};
useEffect(() => {
- checkLaunchOptions();
+ if (mainRunningApp) {
+ checkLaunchOptions();
+ }
}, [mainRunningApp]);
const handleSetLaunchOptions = async () => {
@@ -204,7 +206,7 @@ function MainRunningApp() {
<div>
{mainRunningApp ? (
<>
- <span>{isPatched ? `Ready to: ${mainRunningApp.display_name}` : `Patch: ${mainRunningApp.display_name}`}</span>
+ <span>{isPatched ? `UnPatch: ${mainRunningApp.display_name}` : `Patch: ${mainRunningApp.display_name}`}</span>
<ButtonItem layout="below" onClick={handleSetLaunchOptions}>
{isPatched ? `UnPatch: ${mainRunningApp.display_name}` : `Patch: ${mainRunningApp.display_name}`}
</ButtonItem>