diff --git a/fclauncher/frontend/src/Instances.svelte b/fclauncher/frontend/src/Instances.svelte
index 25f9f0a..9a04cb8 100644
--- a/fclauncher/frontend/src/Instances.svelte
+++ b/fclauncher/frontend/src/Instances.svelte
@@ -4,14 +4,13 @@
import {GetFabricVersions} from '../wailsjs/go/main/Fabric.js'
import {GetQuiltVersions} from '../wailsjs/go/main/Quilt.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 = ""
@@ -66,13 +65,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()
})
@@ -105,7 +104,7 @@
- {#if addingInstance}
+ {#if $addingInstance}