(
options: Electron.MessageBoxOptions
)
| 3279 | async function runMenuUpdateCheck(): Promise<void> { |
| 3280 | const parent = BrowserWindow.getFocusedWindow() ?? mainWindow ?? undefined |
| 3281 | const showDialog = async ( |
| 3282 | options: Electron.MessageBoxOptions |
| 3283 | ): Promise<Electron.MessageBoxReturnValue> => { |
| 3284 | return parent |
| 3285 | ? await dialog.showMessageBox(parent, options) |
| 3286 | : await dialog.showMessageBox(options) |
| 3287 | } |
| 3288 | const state = await checkForAppUpdates() |
| 3289 | |
| 3290 | if (state.phase === 'available') { |
no outgoing calls
no test coverage detected