From: Jean-Philippe Orsini Date: Tue, 11 Nov 2014 13:50:50 +0000 (+0100) Subject: avoid to computer the max temperature if the launcher counter is not enabled. X-Git-Tag: v1.2.0~53 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=e02abf054eace73a51d1f5713b86f6be85d8d61b avoid to computer the max temperature if the launcher counter is not enabled. --- diff --git a/src/ui_unity.c b/src/ui_unity.c index e09bca3..2b949c8 100644 --- a/src/ui_unity.c +++ b/src/ui_unity.c @@ -72,7 +72,7 @@ void ui_unity_launcher_entry_update(struct psensor **sensors, last_visible = show; } - if (sensors && *sensors) { + if (show && sensors && *sensors) { v = get_max_current_value(sensors, SENSOR_TYPE_TEMP); if (v != UNKNOWN_DBL_VALUE) {