Fixed the TopMenu class to only allow sending the next/prev presses if

the menu is visible.
This commit is contained in:
Rob French 2020-06-07 08:55:21 -05:00
parent c27e2eddd6
commit bebd5ad78e

View File

@ -86,17 +86,21 @@ class TopMenu : public MenuItem {
}
virtual MenuItem* prev() {
if (_adjust_tx) {
} else {
_rig.switchRxFilter(true);
if (_visible) {
if (_adjust_tx) {
} else {
_rig.switchRxFilter(true);
}
}
return this;
}
virtual MenuItem* next() {
if (_adjust_tx) {
} else {
_rig.switchRxFilter();
if (_visible) {
if (_adjust_tx) {
} else {
_rig.switchRxFilter();
}
}
return this;
}