mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- osd_setup.cpp: add 'channellist.additional' to channellist's submenu
very ugly: same code two times
This commit is contained in:
@@ -902,9 +902,15 @@ int COsdSetup::showContextChanlistMenu()
|
|||||||
menu_chanlist->enableFade(false);
|
menu_chanlist->enableFade(false);
|
||||||
menu_chanlist->setSelected(cselected);
|
menu_chanlist->setSelected(cselected);
|
||||||
|
|
||||||
|
CMenuOptionChooser * mc;
|
||||||
|
|
||||||
menu_chanlist->addIntroItems(LOCALE_MISCSETTINGS_CHANNELLIST);//, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
|
menu_chanlist->addIntroItems(LOCALE_MISCSETTINGS_CHANNELLIST);//, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
|
||||||
|
|
||||||
CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_MISCSETTINGS_CHANNELLIST_EPGTEXT_ALIGN, &g_settings.channellist_epgtext_align_right, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS_COUNT, true);
|
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_ADDITIONAL, &g_settings.channellist_additional, CHANNELLIST_ADDITIONAL_OPTIONS, CHANNELLIST_ADDITIONAL_OPTION_COUNT, true);
|
||||||
|
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_ADDITIONAL);
|
||||||
|
menu_chanlist->addItem(mc);
|
||||||
|
|
||||||
|
mc = new CMenuOptionChooser(LOCALE_MISCSETTINGS_CHANNELLIST_EPGTEXT_ALIGN, &g_settings.channellist_epgtext_align_right, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS, CHANNELLIST_EPGTEXT_ALIGN_RIGHT_OPTIONS_COUNT, true);
|
||||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EPG_ALIGN);
|
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_EPG_ALIGN);
|
||||||
menu_chanlist->addItem(mc);
|
menu_chanlist->addItem(mc);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user