From de9cca01b99076a7d89af921c686b5fb57335c75 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 6 Jan 2022 16:35:04 +0100 Subject: [PATCH] menue: Show context help button in header if no hint is visible. --- src/gui/widget/menue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index b5a60f742..65c66a90e 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1446,6 +1446,9 @@ void CMenuWidget::initHeader() header->setCaptionColor(COL_MENUHEAD_TEXT); header->enableColBodyGradient(g_settings.theme.menu_Head_gradient, COL_MENUCONTENT_PLUS_0, g_settings.theme.menu_Head_gradient_direction); header->enableGradientBgCleanUp(savescreen); + header->removeContextButtons(); + if (!g_settings.show_menu_hints) + header->addContextButton(CComponentsHeader::CC_BTN_HELP); if (!subhead_text.empty()) initSubHeader();