From: Andreas Monzner Date: Fri, 3 Feb 2006 16:30:13 +0000 (+0000) Subject: add ability to enable/disable "change to next/prev bouquet when quickzap is used... X-Git-Tag: 2.6.0~4205 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/aeef9973a02495fbdedb283493e2de8688dad40a add ability to enable/disable "change to next/prev bouquet when quickzap is used on last/prev service in bouquet" in usage settings --- diff --git a/data/menu.xml b/data/menu.xml index ad73da7e..47034bba 100644 --- a/data/menu.xml +++ b/data/menu.xml @@ -47,7 +47,7 @@ - + diff --git a/data/setup.xml b/data/setup.xml index b74883fc..dde8f521 100644 --- a/data/setup.xml +++ b/data/setup.xml @@ -15,10 +15,11 @@ config.av.defaultac3 config.av.vcrswitch - + config.recording.asktozap config.usage.showdish config.usage.multibouquet + config.usage.quickzap_bouquet_change config.network.dhcp 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()