mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
gui/miscsettings_menu.cpp: add option to enable/disable empty favorites in bouquet list
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8772d219f1
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-27 (Mon, 27 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -479,8 +479,9 @@ int CMiscMenue::showMiscSettingsMenuChanlist()
|
||||
CMenuWidget * ms_chanlist = new CMenuWidget(LOCALE_MISCSETTINGS_HEAD, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_MISCSETUP_CHANNELLIST);
|
||||
ms_chanlist->addIntroItems(LOCALE_MISCSETTINGS_CHANNELLIST);
|
||||
|
||||
bool tmp1 = g_settings.make_hd_list;
|
||||
bool tmp2 = g_settings.make_webtv_list;
|
||||
bool make_hd_list = g_settings.make_hd_list;
|
||||
bool make_webtv_list = g_settings.make_webtv_list;
|
||||
bool show_empty_favorites = g_settings.show_empty_favorites;
|
||||
|
||||
CMenuOptionChooser * mc;
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_MAKE_HDLIST , &g_settings.make_hd_list , OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
@@ -514,10 +515,15 @@ int CMiscMenue::showMiscSettingsMenuChanlist()
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_NUMERIC_ADJUST, &g_settings.channellist_numeric_adjust, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_NUMERIC_ADJUST);
|
||||
ms_chanlist->addItem(mc);
|
||||
|
||||
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_SHOW_EMPTY_FAVS, &g_settings.show_empty_favorites, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true);
|
||||
mc->setHint("", LOCALE_MENU_HINT_CHANNELLIST_SHOW_EMPTY_FAVS);
|
||||
ms_chanlist->addItem(mc);
|
||||
|
||||
int res = ms_chanlist->exec(NULL, "");
|
||||
delete ms_chanlist;
|
||||
if (tmp1 != g_settings.make_hd_list|| tmp2 != g_settings.make_webtv_list)
|
||||
g_Zapit->reinitChannels();
|
||||
if (make_hd_list != g_settings.make_hd_list || make_webtv_list != g_settings.make_webtv_list || show_empty_favorites != g_settings.show_empty_favorites)
|
||||
g_RCInput->postMsg(NeutrinoMessages::EVT_SERVICESCHANGED, 0);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user