mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
gui/widget/menue: clear old menue hint if none is set for current item
This commit is contained in:
@@ -1070,7 +1070,7 @@ void CMenuWidget::paintHint(int pos)
|
|||||||
if (details_line)
|
if (details_line)
|
||||||
savescreen ? details_line->hide() : details_line->kill();
|
savescreen ? details_line->hide() : details_line->kill();
|
||||||
/* clear info box */
|
/* clear info box */
|
||||||
if ((info_box) && (pos == -1))
|
if ((info_box) && (pos < 0))
|
||||||
savescreen ? info_box->hide(true) : info_box->kill();
|
savescreen ? info_box->hide(true) : info_box->kill();
|
||||||
hint_painted = false;
|
hint_painted = false;
|
||||||
}
|
}
|
||||||
@@ -1080,8 +1080,10 @@ void CMenuWidget::paintHint(int pos)
|
|||||||
CMenuItem* item = items[pos];
|
CMenuItem* item = items[pos];
|
||||||
|
|
||||||
if (item->hintIcon.empty() && item->hint == NONEXISTANT_LOCALE) {
|
if (item->hintIcon.empty() && item->hint == NONEXISTANT_LOCALE) {
|
||||||
if (info_box)
|
if (info_box) {
|
||||||
info_box->hide(false);
|
info_box->kill();
|
||||||
|
hint_painted = false;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user