diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-12-06 21:54:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-06 21:54:45 -0500 |
| commit | eb4cb1f5aa2f76bc7dac8d48c583928a1f3f4047 (patch) | |
| tree | 85274d33020adbac5b804480032eef895eb2ba08 /src/components/OptiScalerControls.tsx | |
| parent | 1369909692f0c3eb617f3125027b681cef373ecd (diff) | |
| parent | e6c32d27db7075d66ecef33f368bdd69d3b035d0 (diff) | |
| download | Decky-Framegen-eb4cb1f5aa2f76bc7dac8d48c583928a1f3f4047.tar.gz Decky-Framegen-eb4cb1f5aa2f76bc7dac8d48c583928a1f3f4047.zip | |
Merge pull request #148 from xXJSONDeruloXx/path-overrides
initial path override ui and be
Diffstat (limited to 'src/components/OptiScalerControls.tsx')
| -rw-r--r-- | src/components/OptiScalerControls.tsx | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/components/OptiScalerControls.tsx b/src/components/OptiScalerControls.tsx index 7b2db0e..468683c 100644 --- a/src/components/OptiScalerControls.tsx +++ b/src/components/OptiScalerControls.tsx @@ -10,6 +10,7 @@ import { ClipboardCommands } from "./ClipboardCommands"; import { InstructionCard } from "./InstructionCard"; import { OptiScalerWiki } from "./OptiScalerWiki"; import { UninstallButton } from "./UninstallButton"; +import { ManualPatchControls } from "./CustomPathOverride"; interface OptiScalerControlsProps { pathExists: boolean | null; @@ -21,7 +22,7 @@ export function OptiScalerControls({ pathExists, setPathExists }: OptiScalerCont const [uninstalling, setUninstalling] = useState(false); const [installResult, setInstallResult] = useState<OperationResult | null>(null); const [uninstallResult, setUninstallResult] = useState<OperationResult | null>(null); - + const [manualModeEnabled, setManualModeEnabled] = useState(false); useEffect(() => { if (installResult) { return createAutoCleanupTimer(() => setInstallResult(null), TIMEOUTS.resultDisplay); @@ -76,10 +77,18 @@ export function OptiScalerControls({ pathExists, setPathExists }: OptiScalerCont <OptiScalerHeader pathExists={pathExists} /> - <ClipboardCommands pathExists={pathExists} /> - - <InstructionCard pathExists={pathExists} /> - + <ManualPatchControls + isAvailable={pathExists === true} + onManualModeChange={setManualModeEnabled} + /> + + {!manualModeEnabled && ( + <> + <ClipboardCommands pathExists={pathExists} /> + + <InstructionCard pathExists={pathExists} /> + </> + )} <OptiScalerWiki pathExists={pathExists} /> <UninstallButton |
