diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-08-18 12:55:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 12:55:03 -0400 |
| commit | ab89907bc2ac11fc9760297a0ae0720b7cb3469a (patch) | |
| tree | 91c2f9498c94411891f24bb1b934de0b1984be0d /src/components/Content.tsx | |
| parent | 3d75e193791c18b1a0bcde5c8e80bdc24492c031 (diff) | |
| parent | 687d017c02d5a7dc37fde941c583ff74d8dd6363 (diff) | |
| download | decky-lsfg-vk-ab89907bc2ac11fc9760297a0ae0720b7cb3469a.tar.gz decky-lsfg-vk-ab89907bc2ac11fc9760297a0ae0720b7cb3469a.zip | |
Merge pull request #145 from xXJSONDeruloXx/feat/detect-running-gamev0.10.4
lock profile selection if game is running
Diffstat (limited to 'src/components/Content.tsx')
| -rw-r--r-- | src/components/Content.tsx | 57 |
1 files changed, 42 insertions, 15 deletions
diff --git a/src/components/Content.tsx b/src/components/Content.tsx index 7815951..e0adf3f 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -76,20 +76,25 @@ export function Content() { return ( <PanelSection> - <InstallationButton - isInstalled={isInstalled} - isInstalling={isInstalling} - isUninstalling={isUninstalling} - onInstall={onInstall} - onUninstall={onUninstall} - /> - - <StatusDisplay - dllDetected={dllDetected} - dllDetectionStatus={dllDetectionStatus} - isInstalled={isInstalled} - installationStatus={installationStatus} - /> + {/* Show installation components at top when not fully installed */} + {!isInstalled && ( + <> + <InstallationButton + isInstalled={isInstalled} + isInstalling={isInstalling} + isUninstalling={isUninstalling} + onInstall={onInstall} + onUninstall={onUninstall} + /> + + <StatusDisplay + dllDetected={dllDetected} + dllDetectionStatus={dllDetectionStatus} + isInstalled={isInstalled} + installationStatus={installationStatus} + /> + </> + )} <SmartClipboardButton /> @@ -118,7 +123,29 @@ export function Content() { <ClipboardButton /> {/* Plugin Update Checker */} - <PluginUpdateChecker /> {/* Nerd Stuff Button */} + <PluginUpdateChecker /> + + {/* Show installation components at bottom when fully installed */} + {isInstalled && ( + <> + <InstallationButton + isInstalled={isInstalled} + isInstalling={isInstalling} + isUninstalling={isUninstalling} + onInstall={onInstall} + onUninstall={onUninstall} + /> + + <StatusDisplay + dllDetected={dllDetected} + dllDetectionStatus={dllDetectionStatus} + isInstalled={isInstalled} + installationStatus={installationStatus} + /> + </> + )} + + {/* Nerd Stuff Button */} <PanelSectionRow> <ButtonItem layout="below" |
