diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-07-14 08:08:25 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-07-14 08:08:25 +0000 |
| commit | d5d7fec0298f4c0f457170f84244a25fef6b5609 (patch) | |
| tree | 3237eba50a540fa0a2b4114d1880cf9a0a165c10 /lib/python | |
| parent | 11710c4924adbd4bbf01875808ac4d45be9c8649 (diff) | |
| download | enigma2-d5d7fec0298f4c0f457170f84244a25fef6b5609.tar.gz enigma2-d5d7fec0298f4c0f457170f84244a25fef6b5609.zip | |
add showInfobarOrEpgWhenInfobarAlreadyVisible
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 8 |
1 files changed, 8 insertions, 0 deletions
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? |
