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 --- package.json | 2 +- src/components/ConfigurationSection.tsx | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d56a9f5..237961c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "decky-lossless-scaling-vk", - "version": "0.7.4", + "version": "0.7.5", "description": "Use Lossless Scaling on the Steam Deck using the lsfg-vk vulkan layer", "type": "module", "scripts": { 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