* Restarts the app and installs an update if it is available.
()
| 201 | * Restarts the app and installs an update if it is available. |
| 202 | */ |
| 203 | async installUpdate() { |
| 204 | if (this.status == "ready") { |
| 205 | this.status = "installing"; |
| 206 | await delay(1000); |
| 207 | setUserConfirmedQuit(true); |
| 208 | autoUpdater.quitAndInstall(); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | export function getResolvedUpdateChannel(): string { |
nothing calls this directly
no test coverage detected