From: Ed Page Date: Fri, 5 Aug 2011 01:31:36 +0000 (-0500) Subject: Trying to improve LED disabling X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=commitdiff_plain;h=a8beb6d36e500c1b8e461203b521949db0b7f50f Trying to improve LED disabling --- 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):