From 5bfd9649a028e33bfce27dae073932ac986fdf3a Mon Sep 17 00:00:00 2001 From: modmuss Date: Thu, 11 Apr 2024 11:03:05 +0100 Subject: [PATCH] Show installer beta versions when there is one (#83) --- scripts/src/lib/Installer.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/src/lib/Installer.svelte b/scripts/src/lib/Installer.svelte index 56cfbfc8..bbbf8b2c 100644 --- a/scripts/src/lib/Installer.svelte +++ b/scripts/src/lib/Installer.svelte @@ -3,8 +3,8 @@ import DownloadIcon from "./DownloadIcon.svelte"; const win32 = navigator.platform == "Win32" - const showVersionSelection = false; + let showVersionSelection = false; let expertOptions = false; let selectedVersion = ""; let versions = getDownloads(); @@ -12,6 +12,7 @@ async function getDownloads() { const downloads = await getInstallerVersions(); selectedVersion = downloads.find(v => v.stable)?.url ?? ""; + showVersionSelection = downloads[0].stable == false; return downloads; } @@ -45,7 +46,7 @@ {#if latest?.stable}Installer Version: {latest.version} (Latest){/if} {#if !expertOptions} - Show other versions + Show beta versions {/if}