MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / init

Method init

src/main/api/plugin/window.ts:16–21  ·  view source on GitHub ↗
(mainWindow: Electron.BrowserWindow, pluginManager: PluginManager)

Source from the content-addressed store, hash-verified

14 private mainWindow: Electron.BrowserWindow | null = null
15
16 public init(mainWindow: Electron.BrowserWindow, pluginManager: PluginManager): void {
17 this.pluginManager = pluginManager
18 this.mainWindow = mainWindow
19 this.setupIPC()
20 this.registerPluginApiHandlers()
21 }
22
23 /**
24 * 通过 plugin.api 统一通道注册 createBrowserWindow 相关 handler

Callers

nothing calls this directly

Calls 2

setupIPCMethod · 0.95

Tested by

no test coverage detected