mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
gui/widget/menue.cpp: dont repaint menu on help key, if no hints
This commit is contained in:
@@ -691,9 +691,12 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (CRCInput::RC_help):
|
case (CRCInput::RC_help):
|
||||||
hide();
|
// FIXME should we switch hints in menu without hints ?
|
||||||
|
if (has_hints)
|
||||||
|
hide();
|
||||||
g_settings.show_menu_hints = !g_settings.show_menu_hints;
|
g_settings.show_menu_hints = !g_settings.show_menu_hints;
|
||||||
paint();
|
if (has_hints)
|
||||||
|
paint();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -778,7 +781,7 @@ void CMenuWidget::calcSize()
|
|||||||
if (tmpw > width)
|
if (tmpw > width)
|
||||||
width = tmpw;
|
width = tmpw;
|
||||||
|
|
||||||
if(g_settings.show_menu_hints && (!items[i]->hintIcon.empty() || items[i]->hint != NONEXISTANT_LOCALE)) {
|
if(!items[i]->hintIcon.empty() || items[i]->hint != NONEXISTANT_LOCALE) {
|
||||||
has_hints = true;
|
has_hints = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user