Sort debug view items alphabetically

This commit is contained in:
Jasper Blanckenburg 2023-05-24 01:03:47 +02:00
parent 1bbac4537d
commit 80caf298db
1 changed files with 2 additions and 2 deletions

View File

@ -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);