Defer deletion of any color menu options untill the final menu (in the

selected language) has been loaded.
This commit is contained in:
martin 2024-02-21 20:31:57 +00:00
parent dafa96cff1
commit f436dff43b
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.32 2023/12/17 18:46:42 martin Exp $ */
/* $NetBSD: main.c,v 1.33 2024/02/21 20:31:57 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -288,8 +288,6 @@ main(int argc, char **argv)
if (has_colors()) {
start_color();
do_coloring(clr_arg.fg,clr_arg.bg);
} else {
remove_color_options();
}
msg_window(mainwin);
@ -310,6 +308,10 @@ main(int argc, char **argv)
get_kb_encoding();
init_lang();
/* remove some invalid menu entries */
if (!has_colors())
remove_color_options();
/* Menu processing */
if (partman_go)
partman(NULL);