mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-11 13:07:08 +03:00
Settings: set ok when reading configuration from sysconfdir
Without this htoprc from sysconfdir is ignored and default meters are loaded.
This commit is contained in:
parent
c9b58c7fbe
commit
589b0733d9
@ -542,7 +542,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
|
|||||||
}
|
}
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
this->changed = true;
|
this->changed = true;
|
||||||
Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
|
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
|
||||||
}
|
}
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
Settings_defaultMeters(this, initialCpuCount);
|
Settings_defaultMeters(this, initialCpuCount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user