Skip to content

Commit 75a6b45

Browse files
rddunlapnathanchance
authored andcommitted
kconfig: qconf/xconfig: show the OptionsMode radio button setting at startup
When qconf (xconfig) exits, it saves the current Option settings for Show Name, Show Debug Info, and Show {Normal|All|Prompt} Options. When it is next run, it loads these Option settings from its config file. It correctly shows the flag settings for Show Name and Show Debug Info, but it does not show which of the 3 Show...Options is set. This can lead to confusing output, e.g., if the user thinks that xconfig is in Show All Options mode but kconfig options which have an unmet dependency are still being listed. Add code to show the radio button for the current Show...Options mode during startup so that it will reflect the current config setting. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Nicolas Schier <nsc@kernel.org> Acked-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250812223502.1356426-1-rdunlap@infradead.org Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 35883b0 commit 75a6b45

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/kconfig/qconf.cc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,19 @@ ConfigMainWindow::ConfigMainWindow(void)
13771377
ConfigList::showPromptAction = new QAction("Show Prompt Options", optGroup);
13781378
ConfigList::showPromptAction->setCheckable(true);
13791379

1380+
switch (configList->optMode) {
1381+
case allOpt:
1382+
ConfigList::showAllAction->setChecked(true);
1383+
break;
1384+
case promptOpt:
1385+
ConfigList::showPromptAction->setChecked(true);
1386+
break;
1387+
case normalOpt:
1388+
default:
1389+
ConfigList::showNormalAction->setChecked(true);
1390+
break;
1391+
}
1392+
13801393
QAction *showDebugAction = new QAction("Show Debug Info", this);
13811394
showDebugAction->setCheckable(true);
13821395
connect(showDebugAction, &QAction::toggled,

0 commit comments

Comments
 (0)