avoid to computer the max temperature if the launcher counter is not enabled.
authorJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 11 Nov 2014 13:50:50 +0000 (14:50 +0100)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Tue, 11 Nov 2014 13:50:50 +0000 (14:50 +0100)
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) {