* 从数据库查找 setting 插件
()
| 1330 | * 从数据库查找 setting 插件 |
| 1331 | */ |
| 1332 | private findSettingPlugin(): any { |
| 1333 | const plugins: any = api.dbGet('plugins') |
| 1334 | if (!plugins || !Array.isArray(plugins)) { |
| 1335 | console.error('[Window] 未找到插件列表') |
| 1336 | return null |
| 1337 | } |
| 1338 | const settingPlugin = plugins.find((p: any) => p.name === 'setting') |
| 1339 | if (!settingPlugin) { |
| 1340 | console.error('[Window] 未找到设置插件') |
| 1341 | return null |
| 1342 | } |
| 1343 | return settingPlugin |
| 1344 | } |
| 1345 | |
| 1346 | /** |
| 1347 | * 打开插件安装页面(用于 .zpx 文件关联双击打开) |
no test coverage detected