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

Function scheduleBackgroundAppUpdateCheck

apps/desktop/src/main/updater.ts:287–297  ·  view source on GitHub ↗
(
  delayMs: number = BACKGROUND_UPDATE_CHECK_DELAY_MS
)

Source from the content-addressed store, hash-verified

285}
286
287export function scheduleBackgroundAppUpdateCheck(
288 delayMs: number = BACKGROUND_UPDATE_CHECK_DELAY_MS
289): void {
290 initAppUpdater()
291 if (!updater || backgroundCheckScheduled) return
292 backgroundCheckScheduled = true
293 startupCheckTimer = setTimeout(() => {
294 startupCheckTimer = null
295 void checkForAppUpdates()
296 }, Math.max(0, delayMs))
297}
298
299export async function downloadAppUpdate(): Promise<AppUpdateState> {
300 if (!updater || updateState.phase !== 'available') return getAppUpdateState()

Callers 1

index.tsFile · 0.90

Calls 2

initAppUpdaterFunction · 0.85
checkForAppUpdatesFunction · 0.70

Tested by

no test coverage detected