From 6f88b0cd269dff25e714e5e0c5f620a953dc2b83 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Sun, 5 Feb 2023 17:41:05 +0800 Subject: [PATCH] fix f12 when not on button in options --- src/tui_screen_options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui_screen_options.c b/src/tui_screen_options.c index ac813d3..b878597 100644 --- a/src/tui_screen_options.c +++ b/src/tui_screen_options.c @@ -71,7 +71,7 @@ tui_screen_t tui_screen_options() { newtComponent buttonPressed = newtFormGetCurrent(form); if (buttonPressed == backButton) { ret = MAIN_SCREEN; - } else assert(0); + } else ret = MAIN_SCREEN; newtFormDestroy(form); return ret; }