diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue
index 7dc975982..ca2d1e7d3 100644
--- a/apps/app-frontend/src/App.vue
+++ b/apps/app-frontend/src/App.vue
@@ -346,7 +346,7 @@ async function handleCommand(e) {
}
}
-const updateAvailable = ref(false)
+const availableUpdate = ref(null)
const updateModal = useTemplateRef('updateModal')
async function checkUpdates() {
if (!(await areUpdatesEnabled())) {
@@ -361,10 +361,14 @@ async function checkUpdates() {
}
const update = await invoke('plugin:updater|check')
- updateAvailable.value = !!update
- if (updateAvailable.value) {
- console.log(`Update ${update.version} is available. Showing update modal.`)
- updateModal.value.show(update)
+ if (!!update) {
+ console.log(`Update ${update.version} is available.`)
+ if (update.version === availableUpdate.value?.version) {
+ console.log('Skipping update modal because the new version is the same as the dismissed update')
+ } else {
+ availableUpdate.value = update;
+ updateModal.value.show(update)
+ }
}
}
@@ -471,8 +475,9 @@ function handleAuxClick(e) {