(sensor, icon = 'icon')
| 767 | } |
| 768 | |
| 769 | _sensorIconPath(sensor, icon = 'icon') { |
| 770 | // If the sensor is a numbered gpu, use the gpu icon. Otherwise use whatever icon associated with the sensor name. |
| 771 | let sensorKey = sensor; |
| 772 | if(sensor.startsWith('gpu')) sensorKey = 'gpu'; |
| 773 | |
| 774 | const iconPathPrefixIndex = this._settings.get_int('icon-style'); |
| 775 | return this._extensionObject.path + this._sensorsIconPathPrefix[iconPathPrefixIndex] + this._sensorIcons[sensorKey][icon]; |
| 776 | } |
| 777 | |
| 778 | _ucFirst(string) { |
| 779 | if(string.startsWith('gpu')) return 'Graphics'; |
no outgoing calls
no test coverage detected