summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-08-21 17:42:48 +0200
committerBenny Baumann <BenBE@geshi.org>2021-08-22 16:15:59 +0200
commit6e6334e603564e1b961c010bce2688839f64cca2 (patch)
tree61af365310d1b4730a585ff8554447095dba7a4a /Action.c
parent9060a4179da07c82e73142b2b2afab5e6efaa8b0 (diff)
Simplify adding pages in one place
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Action.c b/Action.c
index 802d2fc5..1d373efb 100644
--- a/Action.c
+++ b/Action.c
@@ -84,12 +84,8 @@ Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess)
static void Action_runSetup(State* st) {
ScreenManager* scr = ScreenManager_new(st->header, st->settings, st, true);
- CategoriesPanel* panelCategories = CategoriesPanel_new(scr, st->settings, st->header, st->pl);
- ScreenManager_add(scr, (Panel*) panelCategories, 16);
- CategoriesPanel_makeMetersPage(panelCategories);
- Panel* panelFocus;
- int ch;
- ScreenManager_run(scr, &panelFocus, &ch);
+ CategoriesPanel_new(scr, st->settings, st->header, st->pl);
+ ScreenManager_run(scr, NULL, NULL);
ScreenManager_delete(scr);
if (st->settings->changed) {
Header_writeBackToSettings(st->header);

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