mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-10 03:04:36 +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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user