MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / sendPluginLoadedEvent

Method sendPluginLoadedEvent

src/main/managers/pluginManager.ts:309–314  ·  view source on GitHub ↗

* 通知渲染进程:插件页面已加载完成

(pluginName: string, pluginPath: string)

Source from the content-addressed store, hash-verified

307 * 通知渲染进程:插件页面已加载完成
308 */
309 private sendPluginLoadedEvent(pluginName: string, pluginPath: string): void {
310 this.mainWindow?.webContents.send('plugin-loaded', {
311 name: pluginName,
312 path: pluginPath
313 })
314 }
315 private mainWindow: BrowserWindow | null = null
316 private pluginView: WebContentsView | null = null
317 private currentPluginPath: string | null = null

Callers 2

createNewPluginViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected