Open changelog with tauri-plugin-opener

This commit is contained in:
Josiah Glosson 2025-07-11 09:29:38 -05:00
parent 69a461dffc
commit 62e2e5ea6f

View File

@ -55,9 +55,9 @@
/> />
<div> <div>
<ButtonStyled> <ButtonStyled>
<a href="https://modrinth.com/news/changelog?filter=app" target="_blank"> <button @click="() => openUrl('https://modrinth.com/news/changelog?filter=app')">
<ExternalIcon /> {{ formatMessage(messages.changelog) }} <ExternalIcon /> {{ formatMessage(messages.changelog) }}
</a> </button>
</ButtonStyled> </ButtonStyled>
</div> </div>
</div> </div>
@ -85,6 +85,7 @@ import { formatBytes } from '@modrinth/utils'
import { handleError } from '@/store/notifications' import { handleError } from '@/store/notifications'
import { loading_listener } from '@/helpers/events' import { loading_listener } from '@/helpers/events'
import { getCurrentWindow } from '@tauri-apps/api/window' import { getCurrentWindow } from '@tauri-apps/api/window'
import { openUrl } from '@tauri-apps/plugin-opener'
const emit = defineEmits<{ const emit = defineEmits<{
(e: 'updateSkipped', version: string): Promise<void> (e: 'updateSkipped', version: string): Promise<void>