MCPcopy Create free account
hub / github.com/material-shell/material-shell / activate

Method activate

src/widget/appPlaceholder.ts:161–170  ·  view source on GitHub ↗
(button = 0)

Source from the content-addressed store, hash-verified

159 }
160
161 activate(button = 0) {
162 if (this.waitForReset) return;
163 this.waitForReset = true;
164 this.clickableContainer.reactive = false;
165 this._spinner = new Animation.Spinner(16);
166 this.spinnerContainer.add_child(this._spinner);
167 this._spinner.play();
168 this.spinnerContainer.set_opacity(255);
169 this.emit('activated', button);
170 }
171
172 reset() {
173 this.clickableContainer.reactive = true;

Callers 2

constructorMethod · 0.95
vfunc_key_press_eventMethod · 0.95

Calls 4

add_childMethod · 0.65
playMethod · 0.65
set_opacityMethod · 0.65
emitMethod · 0.65

Tested by

no test coverage detected