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

Method _drawMenu

extension.js:620–630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618 }
619
620 _drawMenu() {
621 // grab list of selected menubar icons
622 let hotSensors = this._settings.get_strv('hot-sensors');
623 for (let key of Object.values(hotSensors)) {
624 // fixes issue #225 which started when _max_ was moved to the end
625 if (key == '__max_network-download__') key = '__network-rx_max__';
626 if (key == '__max_network-upload__') key = '__network-tx_max__';
627
628 this._createHotItem(key);
629 }
630 }
631
632 _destroyTimer() {
633 // invalidate and reinitialize timer

Callers 2

_initMethod · 0.95
_redrawMenuMethod · 0.95

Calls 1

_createHotItemMethod · 0.95

Tested by

no test coverage detected