Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix menu display on LCD

Patch from #9392

Currently, the main menu is not always updated correctly on the LCD display.
When you enter a submenu, the display is correctly updated to show the submenu.
But when you return to the main menu, the display still shows the submenu until
you change the focus of the elements in the menu. This makes it difficult to
navigate through the menus using only the LCD display.

This commit fixes this behaviour by triggering an updateLCD() when a menu is
aboutToShow().

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
commit 22e48c44dfed397f2e71989b958f65b235c9b725 1 parent f8f23eb
@mzanetti mzanetti authored Beirdo committed
View
1  mythtv/libs/libmythui/myththemedmenu.cpp
@@ -280,6 +280,7 @@ bool MythThemedMenu::keyPressEvent(QKeyEvent *event)
void MythThemedMenu::aboutToShow()
{
MythScreenType::aboutToShow();
+ m_buttonList->updateLCD();
}
void MythThemedMenu::ShowMenu()
View
3  mythtv/libs/libmythui/mythuibuttonlist.h
@@ -169,6 +169,7 @@ class MPUBLIC MythUIButtonList : public MythUIType
void RemoveItem(MythUIButtonListItem *item);
void SetLCDTitles(const QString &title, const QString &columnList = "");
+ void updateLCD(void);
void SetSearchFields(const QString &fields) { m_searchFields = fields; }
bool Find(const QString &searchStr, bool startsWith = false);
@@ -222,8 +223,6 @@ class MPUBLIC MythUIButtonList : public MythUIType
void SetPositionArrowStates(void);
void ItemVisible(MythUIButtonListItem *item);
- void updateLCD(void);
-
void SetActive(bool active);
int PageUp(void);
Please sign in to comment.
Something went wrong with that request. Please try again.