MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / inheritWindowWorkspaceSession

Function inheritWindowWorkspaceSession

apps/desktop/src/main/index.ts:1439–1448  ·  view source on GitHub ↗
(source: BrowserWindow, target: BrowserWindow)

Source from the content-addressed store, hash-verified

1437}
1438
1439function inheritWindowWorkspaceSession(source: BrowserWindow, target: BrowserWindow): void {
1440 const vault = windowVaults.vaultForWindow(source.id)
1441 const mode = windowVaults.modeForWindow(source.id)
1442 if (!vault || !mode) return
1443 if (mode === 'remote') {
1444 windowVaults.setRemoteVault(target.id, vault)
1445 } else {
1446 windowVaults.setLocalVault(target.id, vault)
1447 }
1448}
1449
1450function noteTitleFromRelPath(relPath: string): string {
1451 const base = path.posix.basename(relPath)

Callers 5

createWindowFunction · 0.85
exportNotePdfFunction · 0.85
openFloatingNoteWindowFunction · 0.85
ensureQuickCaptureWindowFunction · 0.85
showQuickCaptureWindowFunction · 0.85

Calls 4

vaultForWindowMethod · 0.80
modeForWindowMethod · 0.80
setRemoteVaultMethod · 0.80
setLocalVaultMethod · 0.80

Tested by

no test coverage detected