fix(updater): fix restart after update

This commit is contained in:
t8y2
2026-05-09 18:08:06 +08:00
parent 4b0681f5af
commit 8d318a2146
5 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ const renderedNotes = computed(() => {
<Button variant="outline" @click="emit('open-latest-release')">{{ t("updates.openRelease") }}</Button>
<template v-if="isDesktop">
<div v-if="updateReady" class="flex flex-col items-end gap-1">
<Button @click="emit('restart')">{{ t("updates.exitAndUpdate") }}</Button>
<Button @click="emit('restart')">{{ t("updates.restart") }}</Button>
<span class="text-xs text-muted-foreground">{{ t("updates.reopenHint") }}</span>
</div>
<Button v-else-if="isDownloadingUpdate" disabled>