auto-sync

This commit is contained in:
rusEfi 2015-01-18 13:03:57 -06:00
parent 46cdd5e1ea
commit 3741c65de9
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ void MenuTree::init(MenuItem *first, int linesCount) {
void MenuTree::enterSubMenu(void) {
if (current->firstChild != NULL) {
current = topVisible = current->firstChild;
} else if (current->callback != NULL) {
VoidCallback cb = current->callback;
cb();
}
}