From d5d7fec0298f4c0f457170f84244a25fef6b5609 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 14 Jul 2007 08:08:25 +0000 Subject: add showInfobarOrEpgWhenInfobarAlreadyVisible --- lib/python/Screens/InfoBarGenerics.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/python') diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index c3d15f09..e2700992 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -406,8 +406,16 @@ class InfoBarEPG: self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions", { "showEventInfo": (self.openEventView, _("show EPG...")), + "showInfobarOrEpgWhenInfobarAlreadyVisible": self.showEventInfoWhenNotVisible, }) + def showEventInfoWhenNotVisible(self): + if self.shown: + self.openEventView() + else: + self.toggleShow() + return 1 + def zapToService(self, service): if not service is None: if self.servicelist.getRoot() != self.epg_bouquet: #already in correct bouquet? -- cgit v1.2.3