mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 19:01:25 +02:00
- user-menu: avoid empty headers in user-menu
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -164,6 +164,8 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
std::string txt = g_settings.usermenu[button]->title;
|
std::string txt = g_settings.usermenu[button]->title;
|
||||||
if (button < COL_BUTTONMAX && txt.empty())
|
if (button < COL_BUTTONMAX && txt.empty())
|
||||||
txt = g_Locale->getText(user_menu[button].caption);
|
txt = g_Locale->getText(user_menu[button].caption);
|
||||||
|
if (txt.empty())
|
||||||
|
txt = g_Locale->getText(LOCALE_USERMENU_HEAD);
|
||||||
|
|
||||||
CMenuWidget *menu = new CMenuWidget(txt, (button < COL_BUTTONMAX) ? user_menu[button].menu_icon_def : "", width);
|
CMenuWidget *menu = new CMenuWidget(txt, (button < COL_BUTTONMAX) ? user_menu[button].menu_icon_def : "", width);
|
||||||
if (menu == NULL)
|
if (menu == NULL)
|
||||||
|
Reference in New Issue
Block a user