From cd82fabfac3120179f947fba331025676dc1af7f Mon Sep 17 00:00:00 2001
From: Natsuu <natsukawa247@outlook.com>
Date: Wed, 14 Jan 2026 04:40:03 +0000
Subject: feat: add functionality to retrieve installed game versions

---
 ui/src/components/BottomBar.svelte | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'ui/src/components/BottomBar.svelte')

diff --git a/ui/src/components/BottomBar.svelte b/ui/src/components/BottomBar.svelte
index dcad9e8..a96b086 100644
--- a/ui/src/components/BottomBar.svelte
+++ b/ui/src/components/BottomBar.svelte
@@ -65,10 +65,13 @@
       >
         {#if gameState.versions.length === 0}
           <option>Loading...</option>
+        {:else if gameState.installedVersionIds.length === 0}
+          <option disabled>No installed versions</option>
         {:else}
           {#each gameState.versions as version}
-            <option value={version.id}>{version.id} ({version.type})</option
-            >
+            {#if gameState.installedVersionIds.includes(version.id)}
+              <option value={version.id}>{version.id} ({version.type})</option>
+            {/if}
           {/each}
         {/if}
       </select>
-- 
cgit v1.2.3-70-g09d2

