summaryrefslogtreecommitdiffstats
path: root/Settings.c
diff options
context:
space:
mode:
authorSohaib Mohamed <sohaib.amhmd@gmail.com>2021-10-26 12:21:40 +0200
committerNathan Scott <nathans@redhat.com>2021-12-07 17:04:49 +1100
commitb672e60886a9f1473d437d065de2d86b4febc543 (patch)
treea87edea024e2ef38aa85ec98124143a81437ab91 /Settings.c
parentcd6457ef88babcf5c0950e91b76d3b8ccf5d46bb (diff)
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>
Diffstat (limited to 'Settings.c')
-rw-r--r--Settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Settings.c b/Settings.c
index a62ecb57..b1cf21a0 100644
--- a/Settings.c
+++ b/Settings.c
@@ -671,7 +671,6 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
this->showMergedCommand = false;
this->hideFunctionBar = 0;
this->headerMargin = true;
- this->screenTabs = true;
#ifdef HAVE_LIBHWLOC
this->topologyAffinity = false;
#endif
@@ -733,6 +732,7 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicColumns)
ok = Settings_read(this, this->filename, initialCpuCount);
}
if (!ok) {
+ this->screenTabs = true;
this->changed = true;
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy