From 26f166011c05a32840c6ef5b16ef48722fbea50e Mon Sep 17 00:00:00 2001 From: philmoz Date: Sun, 9 Apr 2023 13:50:25 +1000 Subject: [PATCH] fix(color): Active widget popup menu causing issues with radio menus (#3417) --- radio/src/gui/colorlcd/widget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/widget.cpp b/radio/src/gui/colorlcd/widget.cpp index 80071327b..400d99c0f 100644 --- a/radio/src/gui/colorlcd/widget.cpp +++ b/radio/src/gui/colorlcd/widget.cpp @@ -57,7 +57,10 @@ Widget::Widget(const WidgetFactory* factory, Window* parent, void Widget::openMenu() { - Menu* menu = new Menu(this); + // Widgets are placed on a full screen window which is underneath the main view menu bar + // Find the parent of this so that when the popup loads it covers the main view menu + Window* w = parent->getFullScreenWindow()->getParent(); + Menu* menu = new Menu(w ? w : this); if (fsAllowed) { menu->addLine(STR_WIDGET_FULLSCREEN, [&]() { setFullscreen(true); }); }