aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-01 21:15:40 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-01 21:15:40 +0000
commitdf21108d272341745a001f781a3b8bd628f4ace6 (patch)
treeaf071395d5a20a80b69962e5384b97cbee7d9bc7 /lib/python/Components/config.py
parentceec7e17eeaecf4290e17f19bf37f299dae0f754 (diff)
downloadenigma2-df21108d272341745a001f781a3b8bd628f4ace6.tar.gz
enigma2-df21108d272341745a001f781a3b8bd628f4ace6.zip
make tmbinc happy
Diffstat (limited to 'lib/python/Components/config.py')
-rw-r--r--lib/python/Components/config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 51e753ca..f0652143 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -526,13 +526,14 @@ class configElement:
#is this right? activate settings after load/cancel and use default
self.change()
- def __init__(self, configPath, control, defaultValue, vals):
+ def __init__(self, configPath, control, defaultValue, vals, saveDefaults = True):
self.configPath = configPath
self.defaultValue = defaultValue
self.controlType = control
self.vals = vals
self.notifierList = [ ]
self.enabled = True
+ self.saveDefaults = saveDefaults
self.loadData()
def getConfigPath(self):
@@ -547,7 +548,7 @@ class configElement:
def reload(self):
self.loadData()
def save(self):
- if self.defaultValue != self.value:
+ if self.defaultValue != self.value or self.saveDefaults == True:
configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value))
class configElement_nonSave(configElement):