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

Method setValue

src/view/params-view.ts:353–357  ·  view source on GitHub ↗
(value: Icon | null)

Source from the content-addressed store, hash-verified

351 }
352
353 setValue(value: Icon | null) {
354 this.icon = value;
355 this.revertButton.setVisible(this.hasCustomIcon());
356 this.imageView.setImage(value?.getImage());
357 }
358
359 hasCustomIcon() {
360 return this.icon && !this.icon.filePath.startsWith(Icon.builtinIconsPath);

Callers 7

constructorMethod · 0.95
#chooseIconFromDiskMethod · 0.95
fillCredentialMethod · 0.45
#onLoginMethod · 0.45
fillParamsMethod · 0.45
clearParamsMethod · 0.45
#updateDefaultIconMethod · 0.45

Calls 3

hasCustomIconMethod · 0.95
setImageMethod · 0.45
getImageMethod · 0.45

Tested by

no test coverage detected