From a8beb6d36e500c1b8e461203b521949db0b7f50f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 4 Aug 2011 20:31:36 -0500 Subject: [PATCH] Trying to improve LED disabling --- src/gv_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gv_views.py b/src/gv_views.py index a989f97..2bd0663 100644 --- a/src/gv_views.py +++ b/src/gv_views.py @@ -376,7 +376,7 @@ class History(object): else: assert False, "How did we get here?" - if self._app.notifyOnMissed and self._app.alarmHandler.alarmType == self._app.alarmHandler.ALARM_BACKGROUND: + if self._app.notifyOnMissed and self._app.alarmHandler.alarmType != self._app.alarmHandler.ALARM_NONE: self._app.ledHandler.off() def _populate_items(self): @@ -603,7 +603,7 @@ class Messages(object): else: assert False, "How did we get here?" - if self._app.notifyOnSms or self._app.notifyOnVoicemail and self._app.alarmHandler.alarmType == self._app.alarmHandler.ALARM_BACKGROUND: + if (self._app.notifyOnSms or self._app.notifyOnVoicemail) and self._app.alarmHandler.alarmType != self._app.alarmHandler.ALARM_NONE: self._app.ledHandler.off() def _populate_items(self): -- 1.7.9.5