aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-08-13 22:03:26 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-10-06 23:49:21 +0200
commit6032ae6e6305ddb3c2d60581d0acb73793af0fc3 (patch)
treec428e4d3806e5447f084095e520dc6d757ee9e91 /lib/python
parent626e2215066e3ed3efddb7edf12b41eda9d6ce50 (diff)
downloadenigma2-6032ae6e6305ddb3c2d60581d0acb73793af0fc3.tar.gz
enigma2-6032ae6e6305ddb3c2d60581d0acb73793af0fc3.zip
introduce afterEventChangeable parameter
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/TaskView.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Screens/TaskView.py b/lib/python/Screens/TaskView.py
index 0b5abcc0..78648602 100644
--- a/lib/python/Screens/TaskView.py
+++ b/lib/python/Screens/TaskView.py
@@ -7,7 +7,7 @@ import Screens.Standby
from Tools import Notifications
class JobView(InfoBarNotifications, Screen, ConfigListScreen):
- def __init__(self, session, job, parent=None, cancelable = True, backgroundable = True):
+ def __init__(self, session, job, parent=None, cancelable = True, backgroundable = True, afterEventChangeable = True):
from Components.Sources.StaticText import StaticText
from Components.Sources.Progress import Progress
from Components.Sources.Boolean import Boolean
@@ -50,11 +50,15 @@ class JobView(InfoBarNotifications, Screen, ConfigListScreen):
shutdownString = _("shut down")
self.settings.afterEvent = ConfigSelection(choices = [("nothing", _("do nothing")), ("close", _("Close")), ("standby", _("go to standby")), ("deepstandby", shutdownString)], default = self.job.afterEvent or "nothing")
self.job.afterEvent = self.settings.afterEvent.getValue()
+ self.afterEventChangeable = afterEventChangeable
self.setupList()
self.state_changed()
def setupList(self):
- self["config"].setList( [ getConfigListEntry(_("After event"), self.settings.afterEvent) ])
+ if self.afterEventChangeable:
+ self["config"].setList( [ getConfigListEntry(_("After event"), self.settings.afterEvent) ])
+ else:
+ self["config"].hide()
self.job.afterEvent = self.settings.afterEvent.getValue()
def keyLeft(self):