(info: any)
| 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) |