diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-28 23:26:14 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-01-04 23:12:43 +0100 |
commit | a3cced9fb615a1cfe0b334fc41dc785f1fb9aef5 (patch) | |
tree | b54469629867cbff2a2dd7489a5c1682d5e22440 /Settings.c | |
parent | 24c5ca9ddfbe088a3d25694cbe170eaf3d7f828f (diff) |
Add option to hide the Function Bar
Support three settings:
- Always show Function Bar
- Always hide the Function Bar, except in Infoscreens (Env/Locks...)
and when editing the search and filter mode
- Hide the Function Bar on ESC until the next user input
Closes: #439
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -221,6 +221,8 @@ static bool Settings_read(Settings* this, const char* fileName, int initialCpuCo } else if (String_eq(option[0], "right_meter_modes")) { Settings_readMeterModes(this, option[1], 1); didReadMeters = true; + } else if (String_eq(option[0], "hide_function_bar")) { + this->hideFunctionBar = atoi(option[1]); #ifdef HAVE_LIBHWLOC } else if (String_eq(option[0], "topology_affinity")) { this->topologyAffinity = !!atoi(option[1]); @@ -315,6 +317,7 @@ bool Settings_write(Settings* this) { fprintf(fd, "left_meter_modes="); writeMeterModes(this, fd, 0); fprintf(fd, "right_meters="); writeMeters(this, fd, 1); fprintf(fd, "right_meter_modes="); writeMeterModes(this, fd, 1); + fprintf(fd, "hide_function_bar=%d\n", (int) this->hideFunctionBar); #ifdef HAVE_LIBHWLOC fprintf(fd, "topology_affinity=%d\n", (int) this->topologyAffinity); #endif @@ -352,6 +355,7 @@ Settings* Settings_new(int initialCpuCount) { this->findCommInCmdline = true; this->stripExeFromCmdline = true; this->showMergedCommand = false; + this->hideFunctionBar = 0; #ifdef HAVE_LIBHWLOC this->topologyAffinity = false; #endif |