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

Function hideQuickCaptureWindow

apps/desktop/src/main/index.ts:3050–3056  ·  view source on GitHub ↗

Dismiss the quick-capture panel. When it was summoned from another app, * hide the whole app (macOS) so focus returns to that app rather than * surfacing ZenNotes' main window.

(win: BrowserWindow)

Source from the content-addressed store, hash-verified

3048 * hide the whole app (macOS) so focus returns to that app rather than
3049 * surfacing ZenNotes' main window. */
3050function hideQuickCaptureWindow(win: BrowserWindow): void {
3051 if (win.isDestroyed()) return
3052 const returnFocus = quickCaptureReturnFocus
3053 quickCaptureReturnFocus = false
3054 win.hide()
3055 if (returnFocus && isMac()) app.hide()
3056}
3057
3058async function showQuickCaptureWindow(): Promise<void> {
3059 // Remember whether ZenNotes was already frontmost. If no ZenNotes window is

Callers 2

ensureQuickCaptureWindowFunction · 0.85
toggleQuickCaptureWindowFunction · 0.85

Calls 1

isMacFunction · 0.85

Tested by

no test coverage detected