From 52cbb5022f0d6b8b27d7537316630c02982a6bf9 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Wed, 22 Jan 2025 23:39:19 -0500
Subject: add description, clean up ui

---
 src/index.tsx | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index 2b305ee..b5211ea 100755
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -31,7 +31,12 @@ function FGModInstallerSection() {
       const result = await checkFGModPath();
       setPathExists(result.exists);
     };
-    checkPath();
+
+    checkPath(); // Initial check
+
+    const intervalId = setInterval(checkPath, 5000); // Check every 5 seconds
+
+    return () => clearInterval(intervalId); // Cleanup interval on component unmount
   }, []);
 
   const handleInstallClick = async () => {
@@ -75,6 +80,12 @@ function FGModInstallerSection() {
           </div>
         </PanelSectionRow>
       )}
+      <PanelSectionRow>
+        <div>
+          Once the patch is installed, you can apply the mod by adding the following to the game's launch options:<br />
+          <code>/home/deck/fgmod/fgmod %COMMAND%</code>
+        </div>
+      </PanelSectionRow>
     </PanelSection>
   );
 }
-- 
cgit v1.2.3

