This commit is contained in:
Josiah Glosson 2025-07-08 17:13:55 -05:00
parent 3d4d0afa59
commit 9a43d49b3b
2 changed files with 10 additions and 4 deletions

View File

@ -364,9 +364,11 @@ async function checkUpdates() {
if (!!update) { if (!!update) {
console.log(`Update ${update.version} is available.`) console.log(`Update ${update.version} is available.`)
if (update.version === availableUpdate.value?.version) { if (update.version === availableUpdate.value?.version) {
console.log('Skipping update modal because the new version is the same as the dismissed update') console.log(
'Skipping update modal because the new version is the same as the dismissed update',
)
} else { } else {
availableUpdate.value = update; availableUpdate.value = update
updateModal.value.show(update) updateModal.value.show(update)
} }
} }
@ -475,7 +477,11 @@ function handleAuxClick(e) {
<PlusIcon /> <PlusIcon />
</NavButton> </NavButton>
<div class="flex flex-grow"></div> <div class="flex flex-grow"></div>
<NavButton v-if="!!availableUpdate" v-tooltip.right="'Update available'" :to="() => updateModal.show(availableUpdate)"> <NavButton
v-if="!!availableUpdate"
v-tooltip.right="'Update available'"
:to="() => updateModal.show(availableUpdate)"
>
<!-- TODO: Gray if updating on next restart --> <!-- TODO: Gray if updating on next restart -->
<DownloadIcon class="text-brand-green" /> <DownloadIcon class="text-brand-green" />
</NavButton> </NavButton>

View File

@ -41,7 +41,7 @@
] ]
}, },
"productName": "Modrinth App", "productName": "Modrinth App",
"version": "0.9.0", "version": "../app-frontend/package.json",
"mainBinaryName": "Modrinth App", "mainBinaryName": "Modrinth App",
"identifier": "ModrinthApp", "identifier": "ModrinthApp",
"plugins": { "plugins": {