Update extension.js

Fix typos and translate comment written in Chinese
This commit is contained in:
BombFoolGranny
2025-12-24 21:07:25 +02:00
committed by GitHub
parent 929837278f
commit 1eb84c2c01

View File

@@ -165,19 +165,19 @@ class FreonMenuButton extends PanelMenu.Button {
this.connect('destroy', this._onButtonDestroy.bind(this)); this.connect('destroy', this._onButtonDestroy.bind(this));
// don't postprone the first call by update-time. // don't postpone the first call by update-time.
this._querySensors(); this._querySensors();
this._addTimer(); this._addTimer();
this._updateUI(true); this._updateUI(true);
this._updateUITimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 250, () => { this._updateUITimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 250, () => {
this._updateUI(); this._updateUI();
// readd to update queue // read to update queue
return true; return true;
}); });
this._positionInPanelChangedTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 500, () => { this._positionInPanelChangedTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 500, () => {
this._positionInPanelChanged(); this._positionInPanelChanged();
return false; // 只执行一次 return false; // execute only once
}); });
} }