History

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.

Randy Dunlap committed 1 year ago

Commit 75a6b451 parent 35883b01 file · +13 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/qconf.cc+13−0
@@ -1377,6 +1377,19 @@ ConfigMainWindow::ConfigMainWindow(void) · 1376 unmodified lines
1377 ConfigList::showPromptAction = new QAction("Show Prompt Options", optGroup);1377 ConfigList::showPromptAction = new QAction("Show Prompt Options", optGroup);
1378 ConfigList::showPromptAction->setCheckable(true);1378 ConfigList::showPromptAction->setCheckable(true);
1379 1379
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
1380 QAction *showDebugAction = new QAction("Show Debug Info", this);1393 QAction *showDebugAction = new QAction("Show Debug Info", this);
1381 showDebugAction->setCheckable(true);1394 showDebugAction->setCheckable(true);
1382 connect(showDebugAction, &QAction::toggled,1395 connect(showDebugAction, &QAction::toggled,