Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
TortoiseHg
thg-hgtk
Commits
de7e23fe9882
Commit
798de848
authored
Dec 06, 2010
by
Johan Samyn
Browse files
settings: show changes made via edit button
parent
ffc188ef9283
Changes
1
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/settings.py
View file @
de7e23fe
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment