aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-05-26 06:21:21 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-05-26 06:21:21 +0000
commitcc183e5e7f1f433c859999e651b60d2954c5f356 (patch)
tree824f781580d3841796dd5866f936dcb323121859 /lib/python
parentfb412ff32c7938649c72d55eed3f5c8ccb5e0a99 (diff)
downloadenigma2-cc183e5e7f1f433c859999e651b60d2954c5f356.tar.gz
enigma2-cc183e5e7f1f433c859999e651b60d2954c5f356.zip
fix notifications
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 2624209c..9e998d05 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1410,19 +1410,19 @@ class InfoBarNotifications:
def __init__(self):
self.onExecBegin.append(self.checkNotifications)
Notifications.notificationAdded.append(self.checkNotificationsIfExecing)
+ self.onClose.append(self.__removeNotification)
+
+ def __removeNotification(self):
+ Notifications.notificationAdded.remove(self.checkNotificationsIfExecing)
def checkNotificationsIfExecing(self):
- try:
- if self.execing:
- self.checkNotifications()
- except:
- print "******************************* A SEVERE ERROR HAPPENED... Someone who understands the code... please fix :) *******"
+ if self.execing:
+ self.checkNotifications()
def checkNotifications(self):
if len(Notifications.notifications):
n = Notifications.notifications[0]
Notifications.notifications = Notifications.notifications[1:]
- print "open",n
cb = n[0]
if cb is not None:
self.session.openWithCallback(cb, n[1], *n[2], **n[3])