autostart and autoend functions are now called on the start and the end of enigma2...
[enigma2.git] / lib / python / Screens / InfoBarGenerics.py
index aac470bf0a1fd811b81af20fc85400f47a439545..10a810cfd8ae5c6cfa1d74bbc1287d4aea0a9183 100644 (file)
@@ -33,6 +33,8 @@ from enigma import *
 import time
 import os
 
+from Components.config import config, currentConfigSelectionElement
+
 # hack alert!
 from Menu import MainMenu, mdom
 
@@ -358,9 +360,15 @@ class InfoBarEPG:
        def __init__(self):
                self["EPGActions"] = HelpableActionMap(self, "InfobarEPGActions", 
                        {
-                               "showEPGList": (self.showEPGList, _("show EPG...")),
+                               "showEPGList": (self.showEPG, _("show EPG...")),
                        })
 
+       def showEPG(self):
+               if currentConfigSelectionElement(config.usage.epgtoggle) == "yes":
+                       self.openSingleServiceEPG()
+               else:
+                       self.showEPGList()
+
        def showEPGList(self):
                bouquets = self.servicelist.getBouquetList()
                if bouquets is None:
@@ -543,6 +551,7 @@ class InfoBarPVR:
                                "seekBack": (self.seekBack, "skip backward"),
                                "seekBackUp": (self.seekBackUp, "skip backward"),
                                                         
+                               "movieList": (self.showMovies, "movie list"),
                                "up": (self.showMovies, "movie list"),
                                "down": (self.showMovies, "movie list")
                        })