def setKey(self, key, value, isDefaultKey=False):
self.changed = 1
def setKey(self, key, value, isDefaultKey=False):
self.changed = 1
if self.value != defaultValue or self.saveDefaults:
configfile.setKey(self.configPath, self.datatoFile(self.controlType, self.value))
else:
if self.value != defaultValue or self.saveDefaults:
configfile.setKey(self.configPath, self.datatoFile(self.controlType, self.value))
else:
if oldValue is not None and oldValue != defaultValue:
configfile.setKey(self.configPath, self.datatoFile(self.controlType, self.value), True)
if oldValue is not None and oldValue != defaultValue:
configfile.setKey(self.configPath, self.datatoFile(self.controlType, self.value), True)