BUGFIX: could not edit last menu entry
This commit is contained in:
parent
ff0393db48
commit
582dc91d71
@ -7,6 +7,6 @@
|
|||||||
|
|
||||||
// Auto generated header file containing the last git revision
|
// Auto generated header file containing the last git revision
|
||||||
|
|
||||||
#define GIT_HASH "a8757b1"
|
#define GIT_HASH "1ff7136"
|
||||||
|
|
||||||
#endif //FLOATPUMP_GIT_REVISION_TEMPLATE_H
|
#endif //FLOATPUMP_GIT_REVISION_TEMPLATE_H
|
@ -80,17 +80,19 @@ namespace floatpump::menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Menu_Controller::increase(Menu *m) {
|
void Menu_Controller::increase(Menu *m) {
|
||||||
if (m_current_index < m->getAllEntriesNum() - 1) {
|
if (m_current_index < m->getAllEntriesNum()) {
|
||||||
if (m->getEntry(m_current_index) != nullptr) {
|
if (m->getEntry(m_current_index) != nullptr) {
|
||||||
//Forward increase action to entry if we have an entered entry
|
//Forward increase action to entry if we have an entered entry
|
||||||
if (m->getEntry(m_current_index)->isEntered()) {
|
if (m->getEntry(m_current_index)->isEntered()) {
|
||||||
m->getEntry(m_current_index)->action_increase();
|
m->getEntry(m_current_index)->action_increase();
|
||||||
} else {
|
} else if (m_current_index < m->getAllEntriesNum() - 1) {
|
||||||
m_current_index++;
|
m_current_index++;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (m_current_index < m->getAllEntriesNum() - 1) {
|
||||||
m_current_index++;
|
m_current_index++;
|
||||||
}
|
}
|
||||||
|
} else if (m_current_index < m->getAllEntriesNum() - 1) {
|
||||||
|
m_current_index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user