mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
mb.cpp: truncate title name in info menu
Minimal view of title should be enough information in this menu and avoids possible issues after hide when user has changed movie data.
This commit is contained in:
@@ -3656,6 +3656,9 @@ bool CMovieBrowser::showMenu(bool calledExternally)
|
||||
{
|
||||
if (!m_movieSelectionHandler->epgTitle.empty())
|
||||
title = m_movieSelectionHandler->epgTitle;
|
||||
const size_t max_size = 32;
|
||||
if (title.size() > max_size)
|
||||
title = title.substr (0, max_size) + " ...";
|
||||
}
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_INFO_HEAD, (m_movieSelectionHandler != NULL), title, this, "show_movie_info_menu", CRCInput::RC_red));
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_MENU_CUT_HEAD, (m_movieSelectionHandler != NULL), NULL , this, "show_movie_cut_menu", CRCInput::RC_green));
|
||||
|
Reference in New Issue
Block a user