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

Method setExpendHeight

src/main/api/plugin/ui.ts:96–104  ·  view source on GitHub ↗
(event: Electron.IpcMainInvokeEvent, height: number)

Source from the content-addressed store, hash-verified

94 }
95
96 private setExpendHeight(event: Electron.IpcMainInvokeEvent, height: number): void {
97 // 检查是否在分离窗口中
98 const detachedWindow = detachedWindowManager.getWindowByPluginWebContents(event.sender.id)
99 if (detachedWindow) {
100 detachedWindowManager.setExpendHeight(event.sender.id, height)
101 } else if (this.pluginManager) {
102 this.pluginManager.setExpendHeight(height)
103 }
104 }
105
106 private setSubInput(
107 placeholder?: string,

Callers 3

setupIPCMethod · 0.95
updateHeightFunction · 0.45

Calls 1

Tested by

no test coverage detected