ui/ncurses: Improve update handling in nested screens
[petitboot] / ui / ncurses / nc-subset.c
index f38e3949b5561ea3105c8df869af9fe78b03a901..0faed3b1d6f1b510fdaa9872f81ab69099c8d4af 100644 (file)
@@ -62,6 +62,12 @@ struct nc_scr *subset_screen_return_scr(struct subset_screen *screen)
        return screen->return_scr;
 }
 
+void subset_screen_update(struct subset_screen *screen)
+{
+       pb_debug("Exiting subset due to update\n");
+       return screen->on_exit(screen->cui);
+}
+
 static struct subset_screen *subset_screen_from_scr(struct nc_scr *scr)
 {
        struct subset_screen *subset_screen;