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

Method findSettingPlugin

src/main/managers/windowManager.ts:1332–1344  ·  view source on GitHub ↗

* 从数据库查找 setting 插件

()

Source from the content-addressed store, hash-verified

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 文件关联双击打开)

Callers 2

showSettingsMethod · 0.95
openPluginInstallerMethod · 0.95

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected