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

Method setWindowDefaultHeight

src/main/api/renderer/settings.ts:618–627  ·  view source on GitHub ↗
(height: number)

Source from the content-addressed store, hash-verified

616
617 // 设置窗口默认高度
618 public setWindowDefaultHeight(height: number): { success: boolean; error?: string } {
619 try {
620 this.pluginManager?.setPluginDefaultHeight(height)
621 console.log('[Settings] 插件默认高度已更新:', height)
622 return { success: true }
623 } catch (error: unknown) {
624 console.error('[Settings] 设置插件默认高度失败:', error)
625 return { success: false, error: error instanceof Error ? error.message : '未知错误' }
626 }
627 }
628
629 // 注册应用快捷键
630 public registerAppShortcut(shortcut: string, target: string): any {

Callers 1

setupIPCMethod · 0.80

Calls 1

Tested by

no test coverage detected