MCPcopy
hub / github.com/ZToolsCenter/ZTools / init

Method init

src/main/api/updater.ts:37–42  ·  view source on GitHub ↗
(mainWindow: BrowserWindow)

Source from the content-addressed store, hash-verified

35 private updateWindow: BrowserWindow | null = null
36
37 public init(mainWindow: BrowserWindow): void {
38 this.mainWindow = mainWindow
39 this.setupIPC()
40 this.startAutoCheck()
41 syncWindowsUninstallVersion()
42 }
43
44 private setupIPC(): void {
45 ipcMain.handle('updater:check-update', () => this.checkUpdate())

Callers

nothing calls this directly

Calls 3

setupIPCMethod · 0.95
startAutoCheckMethod · 0.95

Tested by

no test coverage detected