summaryrefslogtreecommitdiffstats
path: root/Action.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-28 23:26:14 +0100
committercgzones <cgzones@googlemail.com>2021-01-04 23:12:43 +0100
commita3cced9fb615a1cfe0b334fc41dc785f1fb9aef5 (patch)
treeb54469629867cbff2a2dd7489a5c1682d5e22440 /Action.h
parent24c5ca9ddfbe088a3d25694cbe170eaf3d7f828f (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 'Action.h')
-rw-r--r--Action.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Action.h b/Action.h
index 12519119..02d9030d 100644
--- a/Action.h
+++ b/Action.h
@@ -41,6 +41,10 @@ typedef struct State_ {
bool hideProcessSelection;
} State;
+static inline bool State_hideFunctionBar(const State* st) {
+ return st->settings->hideFunctionBar == 2 || (st->settings->hideFunctionBar == 1 && st->hideProcessSelection);
+}
+
typedef Htop_Reaction (*Htop_Action)(State* st);
Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess);

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