aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-03 16:30:13 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-03 16:30:13 +0000
commitaeef9973a02495fbdedb283493e2de8688dad40a (patch)
treeb5061906391e6512f1c2556c2741a33633db40a2 /lib/python
parentade1717b033340b8e644ebd1856e2c1220b2d7c4 (diff)
downloadenigma2-aeef9973a02495fbdedb283493e2de8688dad40a.tar.gz
enigma2-aeef9973a02495fbdedb283493e2de8688dad40a.zip
add ability to enable/disable "change to next/prev bouquet when quickzap is used on last/prev service in bouquet" in usage settings
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/UsageConfig.py2
-rw-r--r--lib/python/Screens/InfoBarGenerics.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index d51b512a..58051ccf 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -6,4 +6,4 @@ def InitUsageConfig():
config.usage = ConfigSubsection();
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"))) )
-
+ config.usage.quickzap_bouquet_change = configElement("config.usage.quickzap_bouquet_change", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 2f12d033..556e7680 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -288,14 +288,15 @@ class InfoBarChannelSelection:
self.session.execDialog(self.servicelist)
def zapUp(self):
- if self.servicelist.inBouquet() and self.servicelist.atBegin():
- self.servicelist.prevBouquet()
+ if currentConfigSelectionElement(config.usage.quickzap_bouquet_change) == "yes":
+ if self.servicelist.inBouquet() and self.servicelist.atBegin():
+ self.servicelist.prevBouquet()
self.servicelist.moveUp()
self.servicelist.zap()
self.doShow()
def zapDown(self):
- if self.servicelist.inBouquet() and self.servicelist.atEnd():
+ if currentConfigSelectionElement(config.usage.quickzap_bouquet_change) == "yes" and self.servicelist.inBouquet() and self.servicelist.atEnd():
self.servicelist.nextBouquet()
else:
self.servicelist.moveDown()