feat: 支持忽略更新

This commit is contained in:
cc authored and xuncha committed 2026-02-02 22:59:30 +08:00
1 parent cb37f534ac
commit 123a088a39
9 files changed
+96 -2

No files matched your search

+13
View File
@@ -316,6 +316,19 @@ function SettingsPage() {
}
}
const handleIgnoreUpdate = async () => {
if (!updateInfo || !updateInfo.version) return
try {
await window.electronAPI.app.ignoreUpdate(updateInfo.version)
setShowUpdateDialog(false)
setUpdateInfo(null)
showMessage(`已忽略版本 ${updateInfo.version}`, true)
} catch (e: any) {
showMessage(`操作失败: ${e}`, false)
}
}
const showMessage = (text: string, success: boolean) => {