mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
Merge pull request #124 from jonasmalacofilho/visualize-stale-hot-sensors
Visualize hot (on panel) sensors that became stale
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user