From 1ff60fe98f2adeb4f19a5db5ae8b10ebc77a2749 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Fri, 26 Sep 2025 20:59:29 -0400
Subject: ui cleanup and hide on mode change to manual

---
 src/components/OptiScalerControls.tsx | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

(limited to 'src/components/OptiScalerControls.tsx')

diff --git a/src/components/OptiScalerControls.tsx b/src/components/OptiScalerControls.tsx
index 3a288e8..468683c 100644
--- a/src/components/OptiScalerControls.tsx
+++ b/src/components/OptiScalerControls.tsx
@@ -22,6 +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,12 +77,18 @@ export function OptiScalerControls({ pathExists, setPathExists }: OptiScalerCont
       
       <OptiScalerHeader pathExists={pathExists} />
       
-      <ManualPatchControls isAvailable={pathExists === true} />
+      <ManualPatchControls
+        isAvailable={pathExists === true}
+        onManualModeChange={setManualModeEnabled}
+      />
 
-      <ClipboardCommands pathExists={pathExists} />
-      
-      <InstructionCard pathExists={pathExists} />
-      
+      {!manualModeEnabled && (
+        <>
+          <ClipboardCommands pathExists={pathExists} />
+          
+          <InstructionCard pathExists={pathExists} />
+        </>
+      )}
       <OptiScalerWiki pathExists={pathExists} />
       
       <UninstallButton 
-- 
cgit v1.2.3

