Add code to check ID

This commit is contained in:
l1231669
2017-08-28 21:54:54 +02:00
parent b9f299d0f0
commit 030694b7b1
+10 -9
View File
@@ -677,16 +677,17 @@ class platform(Platformtools):
if not "label" in c: continue if not "label" in c: continue
# Obtenemos el valor # Obtenemos el valor
if not c["id"] in dict_values: if "id" in c:
if not callback: if not c["id"] in dict_values:
c["value"] = config.get_setting(c["id"], **kwargs) if not callback:
c["value"] = config.get_setting(c["id"], **kwargs)
else:
c["value"] = c["default"]
dict_values[c["id"]] = c["value"]
else: else:
c["value"] = c["default"] c["value"] = dict_values[c["id"]]
dict_values[c["id"]] = c["value"]
else:
c["value"] = dict_values[c["id"]]
# Translation # Translation
if c['label'].startswith('@') and unicode(c['label'][1:]).isnumeric(): if c['label'].startswith('@') and unicode(c['label'][1:]).isnumeric():