avoid to computer the max temperature if the launcher counter is not enabled.
[psensor.git] / src / ui_unity.c
index e09bca3..2b949c8 100644 (file)
@@ -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) {