MCPcopy Create free account
hub / github.com/corecoding/Vitals / _redrawMenu

Method _redrawMenu

extension.js:605–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

603 }
604
605 _redrawMenu() {
606 this._removeHotItems();
607
608 for (let key in this._sensorMenuItems) {
609 if (key.includes('-group')) continue;
610 this._sensorMenuItems[key].destroy();
611 delete this._sensorMenuItems[key];
612 }
613
614 this._drawMenu();
615 this._sensors.resetHistory();
616 this._values.resetHistory(this._numGpus);
617 this._querySensors();
618 }
619
620 _drawMenu() {
621 // grab list of selected menubar icons

Callers 1

_iconStyleChangedMethod · 0.95

Calls 5

_removeHotItemsMethod · 0.95
_drawMenuMethod · 0.95
_querySensorsMethod · 0.95
destroyMethod · 0.45
resetHistoryMethod · 0.45

Tested by

no test coverage detected