MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / constructor

Method constructor

src/main/controller.ts:44–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 transCon = new TranslateController(this);
43
44 constructor() {
45 super();
46 this.config.load();
47 // Lazy load to avoid circular dependencies
48 const { customTranslatorManager } = require("@/common/translate/custom-translators");
49 customTranslatorManager.reload();
50 observers.push(this);
51 observers.push(this.transCon);
52 this.bindLinks(actionLinks);
53 }
54
55 set(identifier: Identifier, value: any): boolean {
56 return this.config.set(identifier, value);

Callers

nothing calls this directly

Calls 3

loadMethod · 0.80
reloadMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected