mirror of https://github.com/xzeldon/htop.git
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) {
|
||||
this->changed = true;
|
||||
Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
|
||||
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
|
||||
}
|
||||
if (!ok) {
|
||||
Settings_defaultMeters(this, initialCpuCount);
|
||||
|
|
Loading…
Reference in New Issue