From b3fb40e7caae0ee8a60b36bdee3dd173a40f3463 Mon Sep 17 00:00:00 2001 From: info-cppsp Date: Wed, 24 Jan 2018 21:11:34 +0100 Subject: Fix popup shower on removed HDD Added timer to active sensors, to suppress infinite popups, when a drive is removed from the system, with its sensor still active in msa. fixes #62 --- sensors-applet/active-sensor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sensors-applet/active-sensor.h') diff --git a/sensors-applet/active-sensor.h b/sensors-applet/active-sensor.h index 375fa75..aac0e05 100644 --- a/sensors-applet/active-sensor.h +++ b/sensors-applet/active-sensor.h @@ -20,6 +20,7 @@ #define ACTIVE_SENSOR_H #ifdef HAVE_LIBNOTIFY +#include #include #include "active-sensor-libnotify.h" #endif @@ -42,6 +43,8 @@ struct _ActiveSensor { #ifdef HAVE_LIBNOTIFY NotifyNotification *notification[NUM_NOTIFS]; + /* error timestamp - save the time of the last SENSOR_INTERFACE_ERROR */ + time_t ierror_ts; #endif gboolean updated; -- cgit v1.2.1