summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-12-02 18:52:09 +0100
committerBenBE <BenBE@geshi.org>2020-12-02 23:50:05 +0100
commitc6b66a75ea140f5b3ed50b273be4c9b3c60ebfad (patch)
treefe63ae719c7a5c2711b0df44825fdd10360f8655 /MainPanel.c
parent709821ff55b2f6fc8e7b4271d091fd8457083865 (diff)
Minor code streamlining
Diffstat (limited to 'MainPanel.c')
-rw-r--r--MainPanel.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/MainPanel.c b/MainPanel.c
index 0f8d0e75..5e3a54c1 100644
--- a/MainPanel.c
+++ b/MainPanel.c
@@ -25,11 +25,7 @@ static const char* const MainFunctions[] = {"Help ", "Setup ", "Search", "Filt
void MainPanel_updateTreeFunctions(MainPanel* this, bool mode) {
FunctionBar* bar = MainPanel_getFunctionBar(this);
- if (mode) {
- FunctionBar_setLabel(bar, KEY_F(5), "Sorted");
- } else {
- FunctionBar_setLabel(bar, KEY_F(5), "Tree ");
- }
+ FunctionBar_setLabel(bar, KEY_F(5), mode ? "Sorted" : "Tree ");
}
void MainPanel_pidSearch(MainPanel* this, int ch) {

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