aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/stores
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-16 18:38:47 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-16 18:42:12 +0800
commit1119f6c3cf421da2f2db92873efae8135c76b678 (patch)
tree57ee487c5003807e984c084a31a37c34e30820cf /ui/src/stores
parent52cf610264444bde95c1feae58414bb9849855eb (diff)
downloadDropOut-1119f6c3cf421da2f2db92873efae8135c76b678.tar.gz
DropOut-1119f6c3cf421da2f2db92873efae8135c76b678.zip
feat: enhance Java version management for Minecraft versions
Added functionality to determine and validate the required Java version for Minecraft versions, including checks for compatibility with older versions. Implemented event emissions for version installation and deletion, and updated the UI to reflect Java version requirements and installation status. Improved version metadata handling and added support for deleting versions.
Diffstat (limited to 'ui/src/stores')
-rw-r--r--ui/src/stores/game.svelte.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/src/stores/game.svelte.ts b/ui/src/stores/game.svelte.ts
index 28b2db5..ca5dc2b 100644
--- a/ui/src/stores/game.svelte.ts
+++ b/ui/src/stores/game.svelte.ts
@@ -14,10 +14,8 @@ export class GameState {
async loadVersions() {
try {
this.versions = await invoke<Version[]>("get_versions");
- if (this.versions.length > 0) {
- const latest = this.versions.find((v) => v.type === "release");
- this.selectedVersion = latest ? latest.id : this.versions[0].id;
- }
+ // Don't auto-select version here - let BottomBar handle version selection
+ // based on installed versions only
} catch (e) {
console.error("Failed to fetch versions:", e);
uiState.setStatus("Error fetching versions: " + e);