made the setting temperature unit dynamic
[psensor.git] / src / ui_unity.c
index e09bca3..9f9bd04 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) {
@@ -83,3 +83,7 @@ void ui_unity_launcher_entry_update(struct psensor **sensors,
                }
        }
 }
+
+void ui_unity_init(void)
+{
+}