Fixed the TopMenu class to only allow sending the next/prev presses if
the menu is visible.
This commit is contained in:
parent
c27e2eddd6
commit
bebd5ad78e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user