mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-07 19:57:06 +03:00
Enable tabs for a fresh install of htop Only
If the new htop is configured with htoprc having no tabs (eg on upgrade) then the interface will not automatically introduce/enable them. However, for a fresh install of htop, enabling them automatically Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
This commit is contained in:
parent
cd6457ef88
commit
b672e60886
@ -671,7 +671,6 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
|
|||||||
this->showMergedCommand = false;
|
this->showMergedCommand = false;
|
||||||
this->hideFunctionBar = 0;
|
this->hideFunctionBar = 0;
|
||||||
this->headerMargin = true;
|
this->headerMargin = true;
|
||||||
this->screenTabs = true;
|
|
||||||
#ifdef HAVE_LIBHWLOC
|
#ifdef HAVE_LIBHWLOC
|
||||||
this->topologyAffinity = false;
|
this->topologyAffinity = false;
|
||||||
#endif
|
#endif
|
||||||
@ -733,6 +732,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
|
|||||||
ok = Settings_read(this, this->filename, initialCpuCount);
|
ok = Settings_read(this, this->filename, initialCpuCount);
|
||||||
}
|
}
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
|
this->screenTabs = true;
|
||||||
this->changed = true;
|
this->changed = true;
|
||||||
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
|
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user