Skip to content
Snippets Groups Projects
Commit ae3c34f6 authored by rswindell's avatar rswindell
Browse files

Cosmetic improvments:

Use "save/restore" uifc.list() mode for "Save Changes" prompt - no need to
leave the prompt visible while saving changes.
Display pop status while saving changes to config file.
parent 061755f9
No related branches found
No related tags found
No related merge requests found
......@@ -2419,7 +2419,10 @@ int main(int argc, char **argv)
break;
case 8:
if(!sbbsecho_write_ini(&cfg))
uifc.pop("Writing config ...");
bool success = sbbsecho_write_ini(&cfg);
uifc.pop(NULL);
if(!success)
uifc.msg("Error saving configuration file");
else {
orig_cfg = cfg;
......@@ -2433,10 +2436,13 @@ int main(int argc, char **argv)
"Select `Yes` to save the config file, `No` to quit without saving,\n"
"or hit ~ ESC ~ to go back to the menu.\n\n";
i=0;
i=uifc.list(WIN_MID,0,0,0,&i,0,"Save Config File",uifcYesNoOpts);
i=uifc.list(WIN_MID|WIN_SAV,0,0,0,&i,0,"Save Config File",uifcYesNoOpts);
if(i==-1) break;
if(i == 0) {
if(!sbbsecho_write_ini(&cfg))
uifc.pop("Writing config ...");
bool success = sbbsecho_write_ini(&cfg);
uifc.pop(NULL);
if(!success)
uifc.msg("Error saving configuration file");
}
}
......
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