MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / showDialog

Function showDialog

apps/desktop/src/main/index.ts:3281–3287  ·  view source on GitHub ↗
(
    options: Electron.MessageBoxOptions
  )

Source from the content-addressed store, hash-verified

3279async 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') {

Callers 1

runMenuUpdateCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected