From 55ea02d1ddcd3b67832956e2f95bf8a6f39b7d9a Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Thu, 24 Jul 2025 10:10:24 -0400
Subject: prevent enable and disable vkbasalt both triggered, bump plugin ver

---
 src/components/ConfigurationSection.tsx | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

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

diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 55a27d2..135d8fb 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -167,7 +167,14 @@ export function ConfigurationSection({
           label="Disable vkBasalt"
           description="Disables vkBasalt layer which can conflict with LSFG (Reshade, some Decky plugins)"
           checked={config.disable_vkbasalt}
-          onChange={(value) => onConfigChange(DISABLE_VKBASALT, value)}
+          disabled={config.force_enable_vkbasalt}
+          onChange={(value) => {
+            if (value && config.force_enable_vkbasalt) {
+              // Turn off force enable when enabling disable
+              onConfigChange(FORCE_ENABLE_VKBASALT, false);
+            }
+            onConfigChange(DISABLE_VKBASALT, value);
+          }}
         />
       </PanelSectionRow>
 
@@ -176,7 +183,14 @@ export function ConfigurationSection({
           label="Force Enable vkBasalt"
           description="Force vkBasalt to engage to fix framepacing issues in gamemode"
           checked={config.force_enable_vkbasalt}
-          onChange={(value) => onConfigChange(FORCE_ENABLE_VKBASALT, value)}
+          disabled={config.disable_vkbasalt}
+          onChange={(value) => {
+            if (value && config.disable_vkbasalt) {
+              // Turn off disable when enabling force enable
+              onConfigChange(DISABLE_VKBASALT, false);
+            }
+            onConfigChange(FORCE_ENABLE_VKBASALT, value);
+          }}
         />
       </PanelSectionRow>
 
-- 
cgit v1.2.3

