diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/index.tsx | 6 |
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> |
