diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-03-10 17:07:28 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-03-10 17:07:28 +0000 |
| commit | a6c8570901e20b1230d770d9c23e628e0311c6be (patch) | |
| tree | 3510d4981a7bb2fd194707905ec26e4f1df4b21b /lib/python | |
| parent | 91194b42d0dc174f3e550b9a440e91fccf7e03ec (diff) | |
| download | enigma2-a6c8570901e20b1230d770d9c23e628e0311c6be.tar.gz enigma2-a6c8570901e20b1230d770d9c23e628e0311c6be.zip | |
show ChannelSelection on first run (after the start wizard)
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 2 | ||||
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 7dd805cb..f4f91272 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -437,6 +437,8 @@ class ChannelSelectionBase(Screen): self.servicePathTV = [ ] self.servicePathRadio = [ ] self.servicePath = None + + self.mode = MODE_TV self.pathChangedDisabled = False diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 0531de95..7a7eb8ff 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -4,7 +4,7 @@ from Components.ActionMap import NumberActionMap from Components.Label import * from Components.ProgressBar import * from Components.config import configfile, configsequencearg -from Components.config import config, configElement, ConfigSubsection, configSequence +from Components.config import config, configElement, ConfigSubsection, configSequence, configElementBoolean from ChannelSelection import ChannelSelection, BouquetSelector from Components.Pixmap import Pixmap, PixmapConditional @@ -269,12 +269,17 @@ class InfoBarNumberZap: self.servicelist.setCurrentSelection(service) #select the service in servicelist self.servicelist.zap() +config.misc.initialchannelselection = configElementBoolean("config.misc.initialchannelselection", 1); + class InfoBarChannelSelection: """ ChannelSelection - handles the channelSelection dialog and the initial channelChange actions which open the channelSelection dialog """ def __init__(self): #instantiate forever self.servicelist = self.session.instantiateDialog(ChannelSelection) + + if config.misc.initialchannelselection.value == 1: + self.onShown.append(self.firstRun) self["ChannelSelectActions"] = HelpableActionMap(self, "InfobarChannelSelection", { @@ -286,6 +291,12 @@ class InfoBarChannelSelection: "historyNext": (self.historyNext, _("next channel in history")) }) + def firstRun(self): + self.onShown.remove(self.firstRun) + config.misc.initialchannelselection.value = 0 + config.misc.initialchannelselection.save() + self.switchChannelDown() + def historyBack(self): self.servicelist.historyBack() |
