add non working multi bouquet switch
[enigma2.git] / lib / python / Components / UsageConfig.py
index 5646a329a5fe8f192cf63caaae37d6e9e2b82deb..027dc3ff2d9f5bafd69c3b0eaa880f6548170a93 100644 (file)
@@ -2,7 +2,19 @@ from config import *
 import os
 from enigma import *
 
 import os
 from enigma import *
 
+from Screens.ChannelSelection import USE_MULTIBOUQUETS
+global USE_MULTIBOUQUETS
+
 def InitUsageConfig():
        config.usage = ConfigSubsection();
        config.usage.epgtoggle = configElement("config.usage.epgtoggle", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
 def InitUsageConfig():
        config.usage = ConfigSubsection();
        config.usage.epgtoggle = configElement("config.usage.epgtoggle", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
-       config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
\ No newline at end of file
+       config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
+       config.usage.multibouquet = configElement("config.usage.multibouquet", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
+       
+       def setMultiBouquet(configElement):
+               if currentConfigSelectionElement(configElement) == "no":
+                       USE_MULTIBOUQUETS = False
+               else:
+                       USE_MULTIBOUQUETS = True
+               
+       config.usage.multibouquet.addNotifier(setMultiBouquet);
\ No newline at end of file