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}