Send instance to top when playing

This commit is contained in:
Carter
2024-01-30 12:32:29 -08:00
parent 694ee7e89f
commit 16dfd1d4a1

View File

@@ -153,6 +153,7 @@ import ContextMenu from '@/components/ui/ContextMenu.vue'
import { mixpanel_track } from '@/helpers/mixpanel'
import { convertFileSrc } from '@tauri-apps/api/tauri'
import { useFetch } from '@/helpers/fetch'
import { useInstances } from '@/store/instances'
const props = defineProps({
id: {
@@ -177,6 +178,8 @@ watch(
}
)
const instancesStore = useInstances()
breadcrumbs.setName(
'Instance',
instance.value.metadata.name.length > 40
@@ -210,6 +213,8 @@ const startInstance = async (context) => {
game_version: instance.value.metadata.game_version,
source: context,
})
await instancesStore.refreshInstances()
}
const checkProcess = async () => {