From 5f7e1a027309d6a7d4febb08650fcf105398f057 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Sat, 26 Jul 2025 20:43:14 -0400 Subject: feat: grey out hdr and enable wsi toggles based on current states to avoid conflicts --- src/components/ConfigurationSection.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/components/ConfigurationSection.tsx') diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index d208f97..93d13a3 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -116,8 +116,9 @@ export function ConfigurationSection({ onConfigChange(HDR_MODE, value)} /> @@ -164,9 +165,16 @@ export function ConfigurationSection({ onConfigChange(ENABLE_WSI, value)} + disabled={config.hdr_mode} + onChange={(value) => { + if (!value && config.hdr_mode) { + // Turn off HDR when disabling WSI + onConfigChange(HDR_MODE, false); + } + onConfigChange(ENABLE_WSI, value); + }} /> -- cgit v1.2.3