From bebd5ad78e462d01f77178675a522d74d314fc2e Mon Sep 17 00:00:00 2001 From: Rob French Date: Sun, 7 Jun 2020 08:55:21 -0500 Subject: [PATCH] Fixed the TopMenu class to only allow sending the next/prev presses if the menu is visible. --- ubitx_iop/menu.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ubitx_iop/menu.h b/ubitx_iop/menu.h index 590be0c..ed686c5 100644 --- a/ubitx_iop/menu.h +++ b/ubitx_iop/menu.h @@ -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; }