Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
01737ed6
Commit
01737ed6
authored
Apr 09, 2015
by
Hisham Muhammad
Browse files
Reset to the default scheme, not the last one.
parent
2f450084
Changes
1
Show whitespace changes
Inline
Side-by-side
Settings.c
View file @
01737ed6
...
@@ -208,8 +208,7 @@ static bool Settings_read(Settings* this, const char* fileName, int cpuCount) {
...
@@ -208,8 +208,7 @@ static bool Settings_read(Settings* this, const char* fileName, int cpuCount) {
this
->
delay
=
atoi
(
option
[
1
]);
this
->
delay
=
atoi
(
option
[
1
]);
}
else
if
(
String_eq
(
option
[
0
],
"color_scheme"
))
{
}
else
if
(
String_eq
(
option
[
0
],
"color_scheme"
))
{
this
->
colorScheme
=
atoi
(
option
[
1
]);
this
->
colorScheme
=
atoi
(
option
[
1
]);
if
(
this
->
colorScheme
<
0
)
this
->
colorScheme
=
0
;
if
(
this
->
colorScheme
<
0
||
this
->
colorScheme
>=
LAST_COLORSCHEME
)
this
->
colorScheme
=
0
;
if
(
this
->
colorScheme
>=
LAST_COLORSCHEME
)
this
->
colorScheme
=
LAST_COLORSCHEME
-
1
;
}
else
if
(
String_eq
(
option
[
0
],
"left_meters"
))
{
}
else
if
(
String_eq
(
option
[
0
],
"left_meters"
))
{
Settings_readMeters
(
this
,
option
[
1
],
0
);
Settings_readMeters
(
this
,
option
[
1
],
0
);
readMeters
=
true
;
readMeters
=
true
;
...
...
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