Skip to content

Commit

Permalink
Fix menu display on LCD
Browse files Browse the repository at this point in the history
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
mzanetti authored and Beirdo committed Jan 30, 2011
1 parent f8f23eb commit 22e48c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythui/myththemedmenu.cpp
Expand Up @@ -280,6 +280,7 @@ bool MythThemedMenu::keyPressEvent(QKeyEvent *event)
void MythThemedMenu::aboutToShow()
{
MythScreenType::aboutToShow();
m_buttonList->updateLCD();
}

void MythThemedMenu::ShowMenu()
Expand Down
3 changes: 1 addition & 2 deletions mythtv/libs/libmythui/mythuibuttonlist.h
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 22e48c4

Please sign in to comment.