| 546 | } |
| 547 | |
| 548 | void ConfigList::setRootMenu(struct menu *menu) |
| 549 | { |
| 550 | enum prop_type type; |
| 551 | |
| 552 | if (rootEntry == menu) |
| 553 | return; |
| 554 | type = menu && menu->prompt ? menu->prompt->type : P_UNKNOWN; |
| 555 | if (type != P_MENU) |
| 556 | return; |
| 557 | updateMenuList(0); |
| 558 | rootEntry = menu; |
| 559 | updateListAll(); |
| 560 | if (currentItem()) { |
| 561 | setSelected(currentItem(), hasFocus()); |
| 562 | scrollToItem(currentItem()); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | void ConfigList::setParentMenu(void) |
| 567 | { |
no outgoing calls
no test coverage detected