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

Include program count in Online Program Sections selection menu

(like we do for Message Groups and File Libraries already)
parent a697846e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3999 passed
......@@ -2377,6 +2377,15 @@ int natvpgm_cfg()
return(0);
}
static uint progs_in_sec(uint sec)
{
uint total = 0;
for(uint i = 0; i < cfg.total_xtrns; ++i)
if(cfg.xtrn[i]->sec == sec)
++total;
return total;
}
void xtrnsec_cfg()
{
......@@ -2388,7 +2397,7 @@ void xtrnsec_cfg()
while(1) {
for(i=0;i<cfg.total_xtrnsecs && i<MAX_OPTS;i++)
sprintf(opt[i],"%-25s",cfg.xtrnsec[i]->name);
sprintf(opt[i],"%-*s %5u", (int)sizeof(cfg.xtrn[i]->name)-1, cfg.xtrnsec[i]->name, progs_in_sec(i));
opt[i][0]=0;
j=WIN_SAV|WIN_ACT|WIN_CHE|WIN_BOT;
if(cfg.total_xtrnsecs)
......@@ -2409,7 +2418,7 @@ void xtrnsec_cfg()
"\n"
"To configure an online program section, select it and hit ~ ENTER ~.\n"
;
i=uifc.list(j,0,0,45,&xtrnsec_dflt,&xtrnsec_bar,"Online Program Sections",opt);
i=uifc.list(j,0,0,0,&xtrnsec_dflt,&xtrnsec_bar,"Online Program Sections Programs",opt);
if((signed)i==-1)
return;
int msk = i & MSK_ON;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment