From e02abf054eace73a51d1f5713b86f6be85d8d61b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 11 Nov 2014 14:50:50 +0100 Subject: [PATCH] avoid to computer the max temperature if the launcher counter is not enabled. --- src/ui_unity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4