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) {
|
void DebugViewView::listUpdateItem(DebugViewLine &line, int16_t itemIndex) {
|
||||||
size_t idx = itemIndex * 2;
|
size_t idx = itemIndex * 2;
|
||||||
line.setFieldType(0, static_cast<DataFieldType>(idx));
|
line.setFieldType(0, dataFieldByAlphaIndex[idx]);
|
||||||
idx++;
|
idx++;
|
||||||
if (idx < DataFieldType_COUNT) {
|
if (idx < DataFieldType_COUNT) {
|
||||||
line.setFieldType(1, static_cast<DataFieldType>(idx));
|
line.setFieldType(1, dataFieldByAlphaIndex[idx]);
|
||||||
line.setFieldVisible(1, true);
|
line.setFieldVisible(1, true);
|
||||||
} else {
|
} else {
|
||||||
line.setFieldVisible(1, false);
|
line.setFieldVisible(1, false);
|
||||||
|
|
Loading…
Reference in New Issue