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,8 +691,11 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
}
|
||||
break;
|
||||
case (CRCInput::RC_help):
|
||||
// FIXME should we switch hints in menu without hints ?
|
||||
if (has_hints)
|
||||
hide();
|
||||
g_settings.show_menu_hints = !g_settings.show_menu_hints;
|
||||
if (has_hints)
|
||||
paint();
|
||||
break;
|
||||
|
||||
@@ -778,7 +781,7 @@ void CMenuWidget::calcSize()
|
||||
if (tmpw > width)
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user