aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-01 21:08:24 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-01-01 21:08:24 +0000
commitceec7e17eeaecf4290e17f19bf37f299dae0f754 (patch)
tree66c5173215501a8de7999e02a28b196167ea5b84 /lib/python
parent14b7e204d87ca1ad0d4f3056cf4b923495c261ef (diff)
downloadenigma2-ceec7e17eeaecf4290e17f19bf37f299dae0f754.tar.gz
enigma2-ceec7e17eeaecf4290e17f19bf37f299dae0f754.zip
reduce size of config file from 100k to some bytes... we just save non default values now which arises some problems... but
size matters :)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 82a5d6d8..51e753ca 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -547,7 +547,8 @@ class configElement:
def reload(self):
self.loadData()
def save(self):
- configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value))
+ if self.defaultValue != self.value:
+ configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value))
class configElement_nonSave(configElement):
def __init__(self, configPath, control, defaultValue, vals):