From 5745670c0a4f6ccb485dd891dc46dc2f54f6f3ca Mon Sep 17 00:00:00 2001 From: cuptain Date: Fri, 1 Nov 2024 11:20:06 +1100 Subject: [PATCH] navbar controls things --- fclauncher/frontend/src/Instances.svelte | 13 ++++++------- fclauncher/frontend/src/Navbar.svelte | 8 +++++--- fclauncher/frontend/src/global.ts | 1 + 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/fclauncher/frontend/src/Instances.svelte b/fclauncher/frontend/src/Instances.svelte index 12043b6..2c98572 100644 --- a/fclauncher/frontend/src/Instances.svelte +++ b/fclauncher/frontend/src/Instances.svelte @@ -3,14 +3,13 @@ import {GetVersions} from '../wailsjs/go/main/App.js' import {GetFabricVersions} from '../wailsjs/go/main/Fabric.js' import {onMount} from 'svelte' - import {loading} from './global.ts' + import {loading, addingInstance} from './global' import {slide} from 'svelte/transition' let modpacks: string[] = [] let pack: string let instances: Instance[] = [] let instance: string - let addingInstance: boolean = false let name: string = "New Modpack" let loader: string = "none" let fabric_ver: string = "" @@ -55,13 +54,13 @@ InstallVanilla(pack, name).then(() => { switch (loader){ case "none": - addingInstance = false + $addingInstance = false $loading = false updateLists() break case "fabric": InstallFabric(name, fabric_ver).then(() => { - addingInstance = false + $addingInstance = false $loading = false updateLists() }) @@ -87,7 +86,7 @@
- {#if addingInstance} + {#if $addingInstance}