Commit 798de848 authored by Johan Samyn's avatar Johan Samyn
Browse files

settings: show changes made via edit button

parent ffc188ef9283
......@@ -188,7 +188,8 @@ class SettingsCheckBox(QCheckBox):
pass
def setValue(self, curvalue):
self.curvalue = curvalue
if self.curvalue == None:
self.curvalue = curvalue
self.setChecked(curvalue)
def value(self):
......@@ -727,9 +728,14 @@ class SettingsForm(QWidget):
self.fnedit.setText(hglib.tounicode(self.fn))
for name, info, widgets in self.pages.values():
if name == 'extensions':
enabledexts = hglib.enabledextensions()
for row, w in enumerate(widgets):
curvalue = (w.opts['label'] in enabledexts)
val = self.readCPath('extensions.' + w.opts['label'])
if val == None:
curvalue = False
elif len(val) and val[0] == '!':
curvalue = False
else:
curvalue = True
w.setValue(curvalue)
else:
for row, (label, cpath, values, tooltip) in enumerate(info):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment