mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
feat: 增加忽略本次更新
This commit is contained in:
1 parent
6cadcb9a5a
commit
7dcda8554e
7 files changed
+219
-5
No files matched your search
@@ -142,6 +142,11 @@ const api = {
|
||||
downloadAppUpdate: () => ipcRenderer.invoke('app-update:download'),
|
||||
installAppUpdate: () => ipcRenderer.invoke('app-update:install'),
|
||||
openAppUpdateDownloadPage: () => ipcRenderer.invoke('app-update:openDownloadPage'),
|
||||
getIgnoredUpdateVersion: (): Promise<string> =>
|
||||
ipcRenderer.invoke('app-update:getIgnoredVersion'),
|
||||
/** 传 `null` 清除忽略记录并恢复启动提示;返回写入后的值(非法版本会被收敛成空串)。 */
|
||||
setIgnoredUpdateVersion: (version: string | null): Promise<string> =>
|
||||
ipcRenderer.invoke('app-update:setIgnoredVersion', version),
|
||||
onAppUpdateState: (callback: (state: AppUpdateState) => void) => {
|
||||
const listener = (_event: Electron.IpcRendererEvent, state: AppUpdateState): void =>
|
||||
callback(state)
|
||||
|
||||
Reference in new issue
Block a user