fix: Reduce chance of input view jumping to first line after deleting input (#1753)

Is not a complete fix as noted in the PR comments as focus isn't actually changed, but an incremental improvement for now.
This commit is contained in:
eshifri
2022-04-05 15:10:23 +10:00
committed by GitHub
parent c4904be508
commit fe8cd4244b
+2 -2
View File
@@ -569,7 +569,7 @@ void ModelInputsPage::build(FormWindow *window, int8_t focusIndex)
});
menu->addLine(STR_DELETE, [=]() {
deleteExpo(inputIndex);
rebuild(window, -1);
rebuild(window, inputIndex);
});
return 0;
});
@@ -620,7 +620,7 @@ void ModelInputsPage::build(FormWindow *window, int8_t focusIndex)
: s_copySrcIdx);
s_copyMode = 0;
}
rebuild(window, -1);
rebuild(window, inputIndex);
return 0;
});
}