diff --git a/Sensors@claudiux/files/Sensors@claudiux/CHANGELOG.md b/Sensors@claudiux/files/Sensors@claudiux/CHANGELOG.md index 5762fed8255..a5235b4a540 100644 --- a/Sensors@claudiux/files/Sensors@claudiux/CHANGELOG.md +++ b/Sensors@claudiux/files/Sensors@claudiux/CHANGELOG.md @@ -1,6 +1,9 @@ +### v4.0.1~20250114 + * As long as the icon is hovered over, the sensors are checked every second. + ### v4.0.0~20250114 * Now uses mainloopTools to improve loop management. - * Maybe fixes #6744. + * Fixes #6744. ### v3.9.0~20241109 * Fixes #6076: Ignores 'empty' sensors (sensors not sending data). diff --git a/Sensors@claudiux/files/Sensors@claudiux/applet.js b/Sensors@claudiux/files/Sensors@claudiux/applet.js index e8fde0e8102..8519d79accc 100644 --- a/Sensors@claudiux/files/Sensors@claudiux/applet.js +++ b/Sensors@claudiux/files/Sensors@claudiux/applet.js @@ -1723,15 +1723,31 @@ class SensorsApplet extends Applet.TextApplet { * Events */ on_enter_event(actor, event) { - this.tooltip_must_be_updated = true; - this.updateUI(); - this.isUpdatingUI = true; - this.updateTooltip(); + this.isActorEntered = true; + this.onEnterEventInterval = setInterval( () => { + this.tooltip_must_be_updated = true; + this.reap_sensors(); + this.isUpdatingUI = false; //new + this.updateUI(); + this.isUpdatingUI = true; + this.updateTooltip(); + return this.isActorEntered; + }, + 1000 + ); } on_leave_event(actor, event) { + this.isActorEntered = false; + if (this.onEnterEventInterval != null) { + clearInterval(this.onEnterEventInterval); + this.onEnterEventInterval = false; + } this.tooltip_must_be_updated = false; this.isUpdatingUI = false; + this.isActorEntered = false; + remove_all_sources(); + this.loopId = timeout_add_seconds(this.interval, () => { this.reap_sensors(); }); } /** diff --git a/Sensors@claudiux/files/Sensors@claudiux/metadata.json b/Sensors@claudiux/files/Sensors@claudiux/metadata.json index 75a4b163ce3..d1687120aa2 100644 --- a/Sensors@claudiux/files/Sensors@claudiux/metadata.json +++ b/Sensors@claudiux/files/Sensors@claudiux/metadata.json @@ -2,7 +2,7 @@ "uuid": "Sensors@claudiux", "name": "Sensors Monitor", "description": "Displays the values of many computer sensors concerning Temperatures (CPU - GPU - Power Supply), Fan Speed, Voltages, Intrusions. Notifies you with color changes when a value reaches or exceeds its limit.", - "version": "4.0.0", + "version": "4.0.1", "max-instances": 1, "cinnamon-version": [ "3.8",