MCPcopy
hub / github.com/xpf0000/FlyEnv / updateAvailable

Method updateAvailable

src/main/core/UpdateManager.ts:60–75  ·  view source on GitHub ↗
(info: any)

Source from the content-addressed store, hash-verified

58 }
59
60 updateAvailable(info: any) {
61 this.emit('update-available', info)
62 dialog
63 .showMessageBox({
64 type: 'info',
65 title: I18nT('update.checkForUpdates'),
66 message: I18nT('update.update-available-message'),
67 buttons: [I18nT('common.value.yes'), I18nT('common.value.no')],
68 cancelId: 1
69 })
70 .then(({ response }) => {
71 if (response === 0) {
72 this.updater.downloadUpdate().then()
73 }
74 })
75 }
76
77 updateNotAvailable(info: any) {
78 this.emit('update-not-available', info)

Callers

nothing calls this directly

Calls 2

I18nTFunction · 0.90
thenMethod · 0.45

Tested by

no test coverage detected