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

Method removePluginNameConfigs

src/main/api/renderer/plugins.ts:518–527  ·  view source on GitHub ↗
(keys: string[], pluginName: string)

Source from the content-addressed store, hash-verified

516 }
517
518 private removePluginNameConfigs(keys: string[], pluginName: string): void {
519 for (const key of keys) {
520 const current = databaseAPI.dbGet(key)
521 const normalized = normalizeConfigList(current)
522 const next = removePluginNameFromSettingList(normalized, pluginName)
523 if (next.length !== normalized.length) {
524 databaseAPI.dbPut(key, next)
525 }
526 }
527 }
528
529 public async setPluginMainPushDisabled(
530 pluginName: string,

Callers 1

deletePluginMethod · 0.95

Calls 4

normalizeConfigListFunction · 0.90
dbGetMethod · 0.45
dbPutMethod · 0.45

Tested by

no test coverage detected