kconfig: set MENU_CHANGED to choice when the selected member is changed

In gconf, choice entries display the selected symbol in the 'Value'
column, but it is not updated when the selected symbol is changed.

Set the MENU_CHANGED flag, so it is updated.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada 2025-06-25 00:04:49 +09:00
parent 7934a8dd86
commit b04c7e88bc

View file

@ -195,6 +195,10 @@ static void sym_set_changed(struct symbol *sym)
list_for_each_entry(menu, &sym->menus, link) list_for_each_entry(menu, &sym->menus, link)
menu->flags |= MENU_CHANGED; menu->flags |= MENU_CHANGED;
menu = sym_get_choice_menu(sym);
if (menu)
menu->flags |= MENU_CHANGED;
} }
static void sym_set_all_changed(void) static void sym_set_all_changed(void)