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

Function focusWindow

apps/desktop/src/main/index.ts:384–389  ·  view source on GitHub ↗
(win: BrowserWindow)

Source from the content-addressed store, hash-verified

382}
383
384function focusWindow(win: BrowserWindow): void {
385 if (win.isDestroyed()) return
386 if (win.isMinimized()) win.restore()
387 win.show()
388 win.focus()
389}
390
391// Dispatch a note-open to a specific window, deferring until that
392// window's renderer reports ready so the request isn't dropped on a

Callers 4

openMarkdownFileFromOSFunction · 0.85
openExternalFileWindowFunction · 0.85
registerIpcFunction · 0.85
index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected