aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-12-07 23:58:05 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-12-07 23:58:05 +0000
commit1f99e91b81a21d2102fedd37fb0a590d40d5d3ef (patch)
tree5dc1d0a43cfd92e16d131e2ec86d31cc7e743b60 /lib
parente4b9b5c9c50af8eb6334559f5bdd6f86474576f4 (diff)
downloadenigma2-1f99e91b81a21d2102fedd37fb0a590d40d5d3ef.tar.gz
enigma2-1f99e91b81a21d2102fedd37fb0a590d40d5d3ef.zip
mark current notifications
Diffstat (limited to 'lib')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 2c18500a..3b653d05 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1584,12 +1584,21 @@ class InfoBarNotifications:
def checkNotifications(self):
if len(Notifications.notifications):
n = Notifications.notifications[0]
+
Notifications.notifications = Notifications.notifications[1:]
cb = n[0]
if cb is not None:
- self.session.openWithCallback(cb, n[1], *n[2], **n[3])
+ dlg = self.session.openWithCallback(cb, n[1], *n[2], **n[3])
else:
- self.session.open(n[1], *n[2], **n[3])
+ dlg = self.session.open(n[1], *n[2], **n[3])
+
+ # remember that this notification is currently active
+ d = (n[4], dlg)
+ Notifications.current_notifications.append(d)
+ dlg.onClose.append(boundFunction(self.__notificationClosed, d))
+
+ def __notificationClosed(self, d):
+ Notifications.current_notifications.remove(d)
class InfoBarServiceNotifications:
def __init__(self):