diff options
| author | thedoc <thedoc@atom.(none)> | 2009-12-23 21:57:24 +0100 |
|---|---|---|
| committer | thedoc <thedoc@atom.(none)> | 2009-12-23 21:57:24 +0100 |
| commit | 0d6eafb15604b8044bfaad3cc844b561f14cfbe1 (patch) | |
| tree | 29c596e50071c166f6864b66dc965fb880a0c0d1 | |
| parent | ee9a89efd6533997e3dc9a4e8adcb360333d01d9 (diff) | |
| download | enigma2-0d6eafb15604b8044bfaad3cc844b561f14cfbe1.tar.gz enigma2-0d6eafb15604b8044bfaad3cc844b561f14cfbe1.zip | |
fixes bug #273
add a quick shortcut to switch to "nothing connected" in the sat config screen for remote debugging purposes (undocumented)
| -rwxr-xr-x | data/keymap.xml | 4 | ||||
| -rw-r--r-- | lib/python/Screens/Satconfig.py | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/data/keymap.xml b/data/keymap.xml index 25538f87..9461d509 100755 --- a/data/keymap.xml +++ b/data/keymap.xml @@ -98,6 +98,10 @@ <key id="KEY_BLUE" mapto="extensions" flags="b" /> </map> + <map context="SatlistShortcutAction"> + <key id="KEY_BLUE" mapto="nothingconnected" flags="b" /> + </map> + <map context="InfobarChannelSelection"> <key id="KEY_LEFT" mapto="zapUp" flags="mr" /> <key id="KEY_RIGHT" mapto="zapDown" flags="mr" /> diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index e24e4636..93fdcd35 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -5,7 +5,8 @@ from Components.ActionMap import ActionMap from Components.ConfigList import ConfigListScreen from Components.MenuList import MenuList from Components.NimManager import nimmanager -from Components.config import getConfigListEntry, config, ConfigNothing, ConfigSelection, updateConfigElement +from Components.config import getConfigListEntry, config, ConfigNothing, ConfigSelection, updateConfigElement,\ + ConfigSatlist from Components.Sources.List import List from Screens.MessageBox import MessageBox from Screens.ChoiceBox import ChoiceBox @@ -381,10 +382,11 @@ class NimSetup(Screen, ConfigListScreen): ConfigListScreen.__init__(self, self.list) - self["actions"] = ActionMap(["SetupActions"], + self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction"], { "ok": self.keySave, "cancel": self.keyCancel, + "nothingconnected": self.nothingConnectedShortcut }, -2) self.slotid = slotid @@ -421,6 +423,11 @@ class NimSetup(Screen, ConfigListScreen): # we need to call saveAll to reset the connectedTo choices self.saveAll() self.close() + + def nothingConnectedShortcut(self): + if type(self["config"].getCurrent()[1]) is ConfigSatlist: + self["config"].getCurrent()[1].setValue("3601") + self["config"].invalidateCurrent() class NimSelection(Screen): def __init__(self, session): |
