From: Jean-Philippe Orsini Date: Mon, 30 Apr 2012 09:46:06 +0000 (+0000) Subject: display notification when alert is enabled and not when graph is draw X-Git-Tag: v0.8.0.5~341 X-Git-Url: http://wpitchoune.net/gitweb/?a=commitdiff_plain;h=52d760cae7fc29f115fabbc606ea948b9f56579a;p=psensor.git display notification when alert is enabled and not when graph is draw --- diff --git a/src/main.c b/src/main.c index 6ed42c5..61b920d 100644 --- a/src/main.c +++ b/src/main.c @@ -241,7 +241,7 @@ gboolean ui_refresh_thread(gpointer data) static void cb_alarm_raised(struct psensor *sensor, void *data) { #ifdef HAVE_LIBNOTIFY - if (sensor->enabled) + if (sensor->alarm_enabled) ui_notify(sensor, (struct ui_psensor *)data); #endif }