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

Function scheduleWindowStatePersist

apps/desktop/src/main/index.ts:961–967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

959
960 let persistWindowStateTimer: ReturnType<typeof setTimeout> | null = null
961 const scheduleWindowStatePersist = () => {
962 if (persistWindowStateTimer) clearTimeout(persistWindowStateTimer)
963 persistWindowStateTimer = setTimeout(() => {
964 persistWindowStateTimer = null
965 void persistWindowState(win)
966 }, WINDOW_STATE_PERSIST_DELAY_MS)
967 }
968 const flushWindowStatePersist = () => {
969 if (persistWindowStateTimer) {
970 clearTimeout(persistWindowStateTimer)

Callers

nothing calls this directly

Calls 1

persistWindowStateFunction · 0.85

Tested by

no test coverage detected