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)
| 3048 | * hide the whole app (macOS) so focus returns to that app rather than |
| 3049 | * surfacing ZenNotes' main window. */ |
| 3050 | function 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 | |
| 3058 | async function showQuickCaptureWindow(): Promise<void> { |
| 3059 | // Remember whether ZenNotes was already frontmost. If no ZenNotes window is |
no test coverage detected