fix(color): Active widget popup menu causing issues with radio menus (#3417)

This commit is contained in:
philmoz
2023-04-09 13:50:25 +10:00
committed by GitHub
parent 92651429a2
commit 26f166011c
+4 -1
View File
@@ -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); });
}