Rebuild window when SF entry cleared

Resolves #322
This commit is contained in:
Peter Feerick
2021-10-28 09:28:01 +10:00
committed by Peter Feerick
parent 7aec59f05c
commit 2f3919c4b9
@@ -686,6 +686,7 @@ void SpecialFunctionsPage::build(FormWindow *window, int8_t focusIndex)
menu->addLine(STR_CLEAR, [=]() {
memset(cfn, 0, sizeof(CustomFunctionData));
SET_DIRTY();
rebuild(window, i);
});
for (int j = i; j < MAX_SPECIAL_FUNCTIONS; j++) {
if (!functions[j].isEmpty()) {