From 149ecf2d8bf5eaacb2e71d7006d3b38f15b91104 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Sat, 16 Aug 2025 12:27:11 -0400
Subject: fix: stuck ui states on newly created profile in conf items

---
 src/components/Content.tsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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

diff --git a/src/components/Content.tsx b/src/components/Content.tsx
index d823257..7815951 100644
--- a/src/components/Content.tsx
+++ b/src/components/Content.tsx
@@ -33,7 +33,8 @@ export function Content() {
 
   const {
     currentProfile,
-    updateProfileConfig
+    updateProfileConfig,
+    loadProfiles
   } = useProfileManagement();
 
   const { isInstalling, isUninstalling, handleInstall, handleUninstall } = useInstallationActions();
@@ -96,7 +97,10 @@ export function Content() {
       {isInstalled && (
         <ProfileManagement
           currentProfile={currentProfile}
-          onProfileChange={() => loadLsfgConfig()}
+          onProfileChange={async () => {
+            await loadProfiles();
+            await loadLsfgConfig();
+          }}
         />
       )}
 
-- 
cgit v1.2.3

