diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-05-01 13:07:39 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-05-01 13:07:39 +0000 |
| commit | 1b9b1eeddb8259b72b6d95c445ae22394c213ffa (patch) | |
| tree | 64d29e33c92640233f66493ef6f8c20b60f49dba /lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py | |
| parent | 92ce4dc3481c29e42f860283a007e37c155ee40b (diff) | |
| download | enigma2-1b9b1eeddb8259b72b6d95c445ae22394c213ffa.tar.gz enigma2-1b9b1eeddb8259b72b6d95c445ae22394c213ffa.zip | |
check if e2 is currently recording before entering the positioner plugin (and prevent entering it when a recording is currently running)
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py b/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py index e3378f14..f1c8da3f 100644 --- a/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py @@ -487,17 +487,20 @@ def PositionerMain(session, **kwargs): if len(nimList) == 0: session.open(MessageBox, _("No positioner capable frontend found."), MessageBox.TYPE_ERROR) else: - usableNims = [] - for x in nimList: - configured_rotor_sats = nimmanager.getRotorSatListForNim(x) - if len(configured_rotor_sats) != 0: - usableNims.append(x) - if len(usableNims) == 1: - session.open(PositionerSetup, usableNims[0]) - elif len(usableNims) > 1: - session.open(NimSelection) + if session.nav.RecordTimer.isRecording(): + session.open(MessageBox, _("A recording is currently running. Please stop the recording before trying to configure the positioner."), MessageBox.TYPE_ERROR) else: - session.open(MessageBox, _("No tuner is configured for use with a diseqc positioner!"), MessageBox.TYPE_ERROR) + usableNims = [] + for x in nimList: + configured_rotor_sats = nimmanager.getRotorSatListForNim(x) + if len(configured_rotor_sats) != 0: + usableNims.append(x) + if len(usableNims) == 1: + session.open(PositionerSetup, usableNims[0]) + elif len(usableNims) > 1: + session.open(NimSelection) + else: + session.open(MessageBox, _("No tuner is configured for use with a diseqc positioner!"), MessageBox.TYPE_ERROR) def Plugins(**kwargs): return PluginDescriptor(name="Positioner setup", description="Setup your positioner", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=PositionerMain) |
