diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-08-16 12:17:21 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-08-16 12:17:21 -0400 |
| commit | 5c3cd5d0dc620a64b13475c7daa5638ddcb061bb (patch) | |
| tree | e2620ca3fcd3c3f39217b0c32834c3aa2fc6ba89 /src | |
| parent | 4104e28053fc03b3875958c7bf56ec6fbc5aab84 (diff) | |
| download | decky-lsfg-vk-5c3cd5d0dc620a64b13475c7daa5638ddcb061bb.tar.gz decky-lsfg-vk-5c3cd5d0dc620a64b13475c7daa5638ddcb061bb.zip | |
fix unique prof creation in conf
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Content.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/Content.tsx b/src/components/Content.tsx index c7c757b..d823257 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -50,11 +50,13 @@ export function Content() { // If we have a current profile, update that profile specifically if (currentProfile) { const newConfig = { ...config, [fieldName]: value }; - await updateProfileConfig(currentProfile, newConfig); - // Also update local config state - await updateField(fieldName, value); + const result = await updateProfileConfig(currentProfile, newConfig); + if (result.success) { + // Reload config to reflect the changes from the backend + await loadLsfgConfig(); + } } else { - // Fallback to the original method + // Fallback to the original method for backward compatibility await updateField(fieldName, value); } }; |
