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

Function flushWindowStatePersist

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

Source from the content-addressed store, hash-verified

966 }, WINDOW_STATE_PERSIST_DELAY_MS)
967 }
968 const flushWindowStatePersist = () => {
969 if (persistWindowStateTimer) {
970 clearTimeout(persistWindowStateTimer)
971 persistWindowStateTimer = null
972 }
973 void persistWindowState(win)
974 }
975
976 win.on('ready-to-show', () => {
977 recordMainPerf('main.window.ready-to-show', performance.now() - createWindowStartedAt, {

Callers

nothing calls this directly

Calls 1

persistWindowStateFunction · 0.85

Tested by

no test coverage detected