From eb51ec80231cf13accf8af156fa7a4283e2a2f88 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Thu, 30 Jul 2026 21:09:27 -0400
Subject: fix: harden lsfg-v2 migration and flatpak support

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

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

diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 7143bb1..538975e 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -4,7 +4,7 @@ import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri";
 import { ConfigurationData } from "../config/configSchema";
 import {
   ACTIVE_IN, ALLOW_FP16, DISABLE_LSFGVK, DLL, FLOW_SCALE, GPU,
-  PERFORMANCE_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
+  PERFORMANCE_MODE, USE_NATIVE_MATCHING, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
   MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI, ENABLE_ZINK
 } from "../config/generatedConfigSchema";
 
@@ -164,12 +164,21 @@ export function ConfigurationSection({
           <PanelSectionRow>
             <TextField
               label="Active In"
-              description="Executable/process names separated by commas. When set, lsfg-vk matches profiles automatically."
+              description="Executable/process names separated by commas."
               value={config.active_in}
               onChange={(event) => onConfigChange(ACTIVE_IN, event.currentTarget.value)}
             />
           </PanelSectionRow>
 
+          <PanelSectionRow>
+            <ToggleField
+              label="Use Automatic Profile Matching"
+              description="Let lsfg-vk choose a matching Active In profile instead of forcing the profile selected in Decky."
+              checked={config.use_native_matching}
+              onChange={(value) => onConfigChange(USE_NATIVE_MATCHING, value)}
+            />
+          </PanelSectionRow>
+
           <PanelSectionRow>
             <SliderField
               label={`Base FPS Cap${config.dxvk_frame_rate > 0 ? ` (${config.dxvk_frame_rate} FPS)` : " (Off)"}`}
-- 
cgit v1.2.3

