Merge pull request #124 from jonasmalacofilho/visualize-stale-hot-sensors

Visualize hot (on panel) sensors that became stale
This commit is contained in:
Vasilii
2019-03-07 08:33:12 +03:00
committed by GitHub

View File

@@ -133,7 +133,7 @@ var FreonMenuButton = new Lang.Class({
this._menuLayout.add(i);
}
let l = new St.Label({
text: '\u2026', /* ... */
text: '\u26a0', // ⚠, warning
y_expand: true,
y_align: Clutter.ActorAlign.CENTER});
this._hotLabels[s] = l;
@@ -416,6 +416,9 @@ var FreonMenuButton = new Lang.Class({
this._fixNames(sensors);
for (let k in this._hotLabels)
this._hotLabels[k].set_text('\u26a0'); // ⚠, warning
for (let s of sensors)
if(s.type != 'separator') {
let l = this._hotLabels[s.key || s.label];