ui/ncurses: Defer item creation until boot editor is done
[petitboot] / ui / ncurses / generic-main.c
index c40ebabb124e5fb89cd719c86a4082670df192be..d9fd7d2d0415349d05c89a766a15d7e9c17a2449 100644 (file)
@@ -143,7 +143,7 @@ static struct pmenu *pb_mm_init(struct pb_cui *pb_cui)
                return NULL;
        }
 
-       m->on_open = cui_on_open;
+       m->on_new = cui_item_new;
 
        m->scr.frame.ltitle = talloc_asprintf(m,
                "Petitboot (" PACKAGE_VERSION ")");