MCPcopy Create free account
hub / github.com/chieapp/chie / setIcon

Method setIcon

src/model/assistant.ts:44–51  ·  view source on GitHub ↗
(icon: Icon)

Source from the content-addressed store, hash-verified

42 }
43
44 setIcon(icon: Icon) {
45 if (!(icon instanceof Icon))
46 throw new Error('Must pass Icon to the setIcon method.');
47 if (this.service.icon?.filePath == icon.filePath)
48 return;
49 this.#removeIcon(this.service.icon);
50 this.service.setIcon(this.#copyIcon(icon));
51 }
52
53 setShortcut(shortcut: string | null) {
54 if (this.shortcut == shortcut)

Callers 2

#onSubmitMethod · 0.45

Calls 2

#removeIconMethod · 0.95
#copyIconMethod · 0.95

Tested by

no test coverage detected