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

Method notifyCommandsChanged

src/main/api/renderer/webSearch.ts:569–578  ·  view source on GitHub ↗

* 通知前端命令列表已变化

()

Source from the content-addressed store, hash-verified

567 * 通知前端命令列表已变化
568 */
569 private notifyCommandsChanged(): void {
570 // 清除 commands 缓存
571 ;(commandsAPI as any).cachedCommandsResult = null
572
573 // 通知渲染进程
574 const mainWindow = windowManager.getMainWindow()
575 if (mainWindow) {
576 mainWindow.webContents.send('plugins-changed')
577 }
578 }
579}
580
581export default new WebSearchAPI()

Callers 3

addEngineMethod · 0.95
updateEngineMethod · 0.95
deleteEngineMethod · 0.95

Calls 1

getMainWindowMethod · 0.80

Tested by

no test coverage detected