diff options
author | neonloop | 2023-03-15 15:29:25 +0000 |
---|---|---|
committer | neonloop | 2023-03-15 15:29:25 +0000 |
commit | 1b744066a50215970db21b44cb97ec512d6254fd (patch) | |
tree | cb9df27f5566c9d24c85b1293d440b095d8ce333 | |
parent | e0fe9095799107ef511db9883dace6e30bcf3215 (diff) | |
download | picoarch-1b744066a50215970db21b44cb97ec512d6254fd.tar.gz picoarch-1b744066a50215970db21b44cb97ec512d6254fd.tar.bz2 picoarch-1b744066a50215970db21b44cb97ec512d6254fd.zip |
Skips invisible core options before showing next page
Fixes showing Next page when no visible options are left
-rw-r--r-- | menu.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -475,6 +475,12 @@ static int menu_loop_core_options_page(int offset, int keys) { menu_idx++; } + for (; i < core_options.len; i++) { + struct core_option_entry *entry = &core_options.entries[i]; + if (!entry->blocked && entry->visible) + break; + } + if (i < core_options.len) { menu_entry *option; option = &e_menu_core_options[menu_idx]; |