From c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Jan 2021 20:43:27 +0100 Subject: New upstream version 3.0.5 --- Action.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Action.h') diff --git a/Action.h b/Action.h index 1251911..02d9030 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); -- cgit v1.2.3