mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
Put the menu_is_visible test back because it avoids printing spurious
(albeit commented out) garbage.
This commit is contained in:
parent
415f6c9628
commit
6b00d0d3ca
@ -322,18 +322,18 @@ int conf_write(const char *name)
|
||||
while (menu) {
|
||||
sym = menu->sym;
|
||||
if (!sym) {
|
||||
//if (!menu_is_visible(menu))
|
||||
// goto next;
|
||||
str = menu_get_prompt(menu);
|
||||
fprintf(out, "\n"
|
||||
"#\n"
|
||||
"# %s\n"
|
||||
"#\n", str);
|
||||
if (out_h)
|
||||
fprintf(out_h, "\n"
|
||||
"/*\n"
|
||||
" * %s\n"
|
||||
" */\n", str);
|
||||
if (menu_is_visible(menu)) {
|
||||
str = menu_get_prompt(menu);
|
||||
fprintf(out, "\n"
|
||||
"#\n"
|
||||
"# %s\n"
|
||||
"#\n", str);
|
||||
if (out_h)
|
||||
fprintf(out_h, "\n"
|
||||
"/*\n"
|
||||
" * %s\n"
|
||||
" */\n", str);
|
||||
}
|
||||
} else if (!(sym->flags & SYMBOL_CHOICE)) {
|
||||
sym_calc_value(sym);
|
||||
//if (!(sym->flags & SYMBOL_WRITE))
|
||||
|
Loading…
Reference in New Issue
Block a user