Skip to content
Snippets Groups Projects
Commit 0deb94c7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix default program section selection

Hitting [Enter] is supposed to select the current/default program
section. Instead, it was quitting. This was apparently broken as
part of the xtrn_sec.js refactor a year or so ago by/with mlong.
parent 9445866c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -275,10 +275,11 @@ function external_section_menu() ...@@ -275,10 +275,11 @@ function external_section_menu()
} }
bbs.node_sync(); bbs.node_sync();
xsec=console.getnum(sec_list.length); var num = console.getnum(sec_list.length);
if(xsec<=0) if(num < 0)
break; break;
xsec--; if(num > 0)
xsec = num - 1;
external_program_menu(sec_list[xsec].index); external_program_menu(sec_list[xsec].index);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment