summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-17 17:53:23 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-03-17 17:53:23 +0100
commit16243a4a7effd259bbf552b88ee26a239ee6ebc2 (patch)
tree1fd4dd7bfc775d29c9f2cb069a27dbd69174b632 /Action.c
parente942736267ca70c5c23485ec2718355c287ec958 (diff)
Action: merge conditions
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/Action.c b/Action.c
index b2a2dfd9..a8385708 100644
--- a/Action.c
+++ b/Action.c
@@ -325,14 +325,12 @@ static Htop_Reaction actionSetAffinity(State* st) {
static Htop_Reaction actionKill(State* st) {
Panel* signalsPanel = SignalsPanel_new();
const ListItem* sgn = (ListItem*) Action_pickFromVector(st, signalsPanel, 15, true);
- if (sgn) {
- if (sgn->key != 0) {
- Panel_setHeader((Panel*)st->mainPanel, "Sending...");
- Panel_draw((Panel*)st->mainPanel, false, true, true, State_hideFunctionBar(st));
- refresh();
- MainPanel_foreachProcess(st->mainPanel, Process_sendSignal, (Arg) { .i = sgn->key }, NULL);
- napms(500);
- }
+ if (sgn && sgn->key != 0) {
+ Panel_setHeader((Panel*)st->mainPanel, "Sending...");
+ Panel_draw((Panel*)st->mainPanel, false, true, true, State_hideFunctionBar(st));
+ refresh();
+ MainPanel_foreachProcess(st->mainPanel, Process_sendSignal, (Arg) { .i = sgn->key }, NULL);
+ napms(500);
}
Panel_delete((Object*)signalsPanel);
return HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;

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