diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index a41258ff..69ef26bd 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -839,12 +839,21 @@ export default function Hardware() { const pciDevice = findPCIDeviceForGPU(gpu) const fullSlot = pciDevice?.slot || gpu.slot - return ( -
handleGPUClick(gpu)} - className="cursor-pointer rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 p-4 transition-colors" - > +return ( +
{ + // Don't open modal if we're editing this GPU's switch mode + if (editingSwitchModeGpu !== fullSlot) { + handleGPUClick(gpu) + } + }} + className={`rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card p-4 transition-colors ${ + editingSwitchModeGpu === fullSlot + ? "cursor-default" + : "cursor-pointer sm:hover:bg-white/5" + }`} + >
{gpu.name} {gpu.vendor} @@ -880,10 +889,7 @@ export default function Hardware() { {/* GPU Switch Mode Indicator */} {getGpuSwitchMode(gpu) !== "unknown" && ( -
e.stopPropagation()} - > +
Switch Mode @@ -893,13 +899,19 @@ export default function Hardware() { <>