summaryrefslogtreecommitdiff
path: root/src/components/ProfileManagement.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-08-16 12:27:11 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-08-16 12:27:11 -0400
commit149ecf2d8bf5eaacb2e71d7006d3b38f15b91104 (patch)
treed31098154dabce3d12fd949501f6ffd7c376a3c9 /src/components/ProfileManagement.tsx
parentf493e25698427a933a38bdacb314c3da7672df55 (diff)
downloaddecky-lsfg-vk-149ecf2d8bf5eaacb2e71d7006d3b38f15b91104.tar.gz
decky-lsfg-vk-149ecf2d8bf5eaacb2e71d7006d3b38f15b91104.zip
fix: stuck ui states on newly created profile in conf items
Diffstat (limited to 'src/components/ProfileManagement.tsx')
-rw-r--r--src/components/ProfileManagement.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/ProfileManagement.tsx b/src/components/ProfileManagement.tsx
index a499836..83b5fa4 100644
--- a/src/components/ProfileManagement.tsx
+++ b/src/components/ProfileManagement.tsx
@@ -163,6 +163,8 @@ export function ProfileManagement({ currentProfile, onProfileChange }: ProfileMa
if (result.success) {
showSuccessToast("Profile created", `Created profile: ${profileName}`);
await loadProfiles();
+ // Automatically switch to the newly created profile
+ await handleProfileChange(profileName);
} else {
console.error("Failed to create profile:", result.error);
showErrorToast("Failed to create profile", result.error || "Unknown error");