(height: number)
| 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 { |
no test coverage detected