Sort debug view items alphabetically
This commit is contained in:
parent
1bbac4537d
commit
80caf298db
|
@ -16,10 +16,10 @@ void DebugViewView::tearDownScreen() { DebugViewViewBase::tearDownScreen(); }
|
|||
|
||||
void DebugViewView::listUpdateItem(DebugViewLine &line, int16_t itemIndex) {
|
||||
size_t idx = itemIndex * 2;
|
||||
line.setFieldType(0, static_cast<DataFieldType>(idx));
|
||||
line.setFieldType(0, dataFieldByAlphaIndex[idx]);
|
||||
idx++;
|
||||
if (idx < DataFieldType_COUNT) {
|
||||
line.setFieldType(1, static_cast<DataFieldType>(idx));
|
||||
line.setFieldType(1, dataFieldByAlphaIndex[idx]);
|
||||
line.setFieldVisible(1, true);
|
||||
} else {
|
||||
line.setFieldVisible(1, false);
|
||||
|
|
Loading…
Reference in New Issue