| 1665 | return true; |
| 1666 | case ControllerUiAction::PreviousTab: |
| 1667 | case ControllerUiAction::NextTab: |
| 1668 | if (CModsList* list = dynamic_cast<CModsList*>(GetCtrl(IDC_MODS_LIST))) |
| 1669 | { |
| 1670 | const int delta = action == ControllerUiAction::NextTab ? 1 : 4; |
| 1671 | OnButtonClicked(kModsTabIds[(list->GetSourceMode() + delta) % 5]); |
| 1672 | } |
| 1673 | return true; |
| 1674 | default: |
| 1675 | break; |
| 1676 | } |
| 1677 | return Display::DoControllerUiAction(action); |
| 1678 | } |
| 1679 | |
| 1680 | void DisplayMods::ApplyInitialSort() |
| 1681 | { |
| 1682 | _sortColumn = MSCName; |
| 1683 | _sortAscending = true; |
| 1684 | CModsList* list = dynamic_cast<CModsList*>(GetCtrl(IDC_MODS_LIST)); |
| 1685 | if (list != nullptr) |
| 1686 | list->Sort(MSCName, _sortAscending); |
| 1687 | UpdateSortCarets(); |
| 1688 | UpdateCatalogUi(); |
nothing calls this directly
no test coverage detected