summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-24 10:10:24 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-24 10:10:24 -0400
commit55ea02d1ddcd3b67832956e2f95bf8a6f39b7d9a (patch)
treeaf8a35ee80d162b691fbb2ed002dd5e3411838fe /src
parented804515981cd5176ac244a0fdaa301a55fa97f9 (diff)
downloaddecky-lsfg-vk-55ea02d1ddcd3b67832956e2f95bf8a6f39b7d9a.tar.gz
decky-lsfg-vk-55ea02d1ddcd3b67832956e2f95bf8a6f39b7d9a.zip
prevent enable and disable vkbasalt both triggered, bump plugin ver
Diffstat (limited to 'src')
-rw-r--r--src/components/ConfigurationSection.tsx18
1 files changed, 16 insertions, 2 deletions
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>