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,18 +86,22 @@ class TopMenu : public MenuItem {
} }
virtual MenuItem* prev() { virtual MenuItem* prev() {
if (_visible) {
if (_adjust_tx) { if (_adjust_tx) {
} else { } else {
_rig.switchRxFilter(true); _rig.switchRxFilter(true);
} }
}
return this; return this;
} }
virtual MenuItem* next() { virtual MenuItem* next() {
if (_visible) {
if (_adjust_tx) { if (_adjust_tx) {
} else { } else {
_rig.switchRxFilter(); _rig.switchRxFilter();
} }
}
return this; return this;
} }