diff --git a/Cargo.lock b/Cargo.lock index 740f7f675..8859b55c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8956,7 +8956,7 @@ dependencies = [ [[package]] name = "theseus" -version = "0.9.0-2" +version = "0.9.0" dependencies = [ "async-recursion", "async-tungstenite", @@ -9007,7 +9007,7 @@ dependencies = [ [[package]] name = "theseus_gui" -version = "0.9.0-2" +version = "0.9.0" dependencies = [ "chrono", "cocoa 0.25.0", diff --git a/apps/app-frontend/package.json b/apps/app-frontend/package.json index ae3969723..4f2297f82 100644 --- a/apps/app-frontend/package.json +++ b/apps/app-frontend/package.json @@ -1,7 +1,7 @@ { "name": "@modrinth/app-frontend", "private": true, - "version": "0.9.0-2", + "version": "0.9.0", "type": "module", "scripts": { "dev": "vite", diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index 727d86a28..7452562cd 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -264,13 +264,15 @@ router.afterEach((to) => { forceSidebar.value = to.path.startsWith('/browse') || to.path.startsWith('/project') }) +const currentTimeout = ref(null) watch( showAd, () => { if (!showAd.value) { + if (currentTimeout.value) clearTimeout(currentTimeout.value) hide_ads_window(true) } else { - setTimeout(() => { + currentTimeout.value = setTimeout(() => { init_ads_window(true) }, 400) } @@ -441,7 +443,7 @@ function handleAuxClick(e) {
- +
{ break } case 'open_link': - window.__TAURI_INVOKE__('tauri', { - __tauriModule: 'Shell', - message: { - cmd: 'open', - path: `https://modrinth.com/${args.item.project_type}/${args.item.slug}`, - }, - }) + openUrl(`https://modrinth.com/${args.item.project_type}/${args.item.slug}`) break case 'copy_link': await navigator.clipboard.writeText( diff --git a/apps/app-frontend/src/components/ui/Instance.vue b/apps/app-frontend/src/components/ui/Instance.vue index 3c2e3b91e..731c9cc7d 100644 --- a/apps/app-frontend/src/components/ui/Instance.vue +++ b/apps/app-frontend/src/components/ui/Instance.vue @@ -189,11 +189,12 @@ onUnmounted(() => unlisten()) v-else-if="modLoading || installing" v-tooltip="modLoading ? 'Instance is loading...' : 'Installing...'" class="animate-spin w-8 h-8" + tabindex="-1" />