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

Save/restore the current selected user

Addresses issue #350.

Also fixed up the alignment of the header/columns.
parent b1bb5630
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2775 passed
......@@ -2097,6 +2097,8 @@ int main(int argc, char** argv) {
finduser(&cfg,&user);
}
if(j==2) {
int curuser = 0;
int curbar = 0;
/* List All Users */
done=0;
while(!done) {
......@@ -2108,12 +2110,12 @@ int main(int argc, char** argv) {
}
opt[i-1][0]=0;
i=0;
switch(uifc.list(WIN_ORG|WIN_MID|WIN_ACT,0,0,0,&i,0,"DI Real Name Alias ",opt)) {
switch(uifc.list(WIN_ORG|WIN_MID|WIN_ACT,0,0,0,&curuser,&curbar,"DI Real Name Alias ",opt)) {
case -1:
done=1;
break;
default:
edit_user(&cfg, i+1);
edit_user(&cfg, curuser+1);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment