- moviebrowser: auto-choose movie-start in startup menu, when ...

... start-bookmark is set
This commit is contained in:
svenhoefer
2015-02-21 17:21:07 +01:00
parent cc4f10297d
commit f737192ef4

View File

@@ -2965,10 +2965,12 @@ int CMovieBrowser::showStartPosSelectionMenu(void) // P2
startPosSelectionMenu.addIntroItems(LOCALE_MOVIEBROWSER_START_HEAD, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL); startPosSelectionMenu.addIntroItems(LOCALE_MOVIEBROWSER_START_HEAD, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
int off = startPosSelectionMenu.getItemsCount(); int off = startPosSelectionMenu.getItemsCount();
bool got_start_pos = false;
if (m_movieSelectionHandler->bookmarks.start != 0) if (m_movieSelectionHandler->bookmarks.start != 0)
{ {
startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_BOOK_MOVIESTART, true, start_pos)); got_start_pos = true;
startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_BOOK_MOVIESTART, true, start_pos), true);
position[menu_nr++] = m_movieSelectionHandler->bookmarks.start; position[menu_nr++] = m_movieSelectionHandler->bookmarks.start;
} }
if (m_movieSelectionHandler->bookmarks.lastPlayStop != 0) if (m_movieSelectionHandler->bookmarks.lastPlayStop != 0)
@@ -2977,7 +2979,7 @@ int CMovieBrowser::showStartPosSelectionMenu(void) // P2
position[menu_nr++] = m_movieSelectionHandler->bookmarks.lastPlayStop; position[menu_nr++] = m_movieSelectionHandler->bookmarks.lastPlayStop;
} }
startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_START_RECORD_START, true,NULL), true); startPosSelectionMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_START_RECORD_START, true,NULL), got_start_pos ? false : true);
position[menu_nr++] = 0; position[menu_nr++] = 0;
for (int i = 0; i < MI_MOVIE_BOOK_USER_MAX && menu_nr < MAX_NUMBER_OF_BOOKMARK_ITEMS; i++) for (int i = 0; i < MI_MOVIE_BOOK_USER_MAX && menu_nr < MAX_NUMBER_OF_BOOKMARK_ITEMS; i++)