mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
gui/channellist.cpp: add menu option to reset all 'new' channels
This commit is contained in:
@@ -233,6 +233,7 @@ channellist.nonefound No channels were found!\nPlease execute a scan\n(MENU-key
|
||||
channellist.numeric_adjust Numeric zap adjust
|
||||
channellist.provs Providers
|
||||
channellist.recording_not_possible Recording not possible!
|
||||
channellist.reset_all Reset 'new' flag for all channels
|
||||
channellist.reset_flags Reset 'new' channel flag
|
||||
channellist.sats Satellites
|
||||
channellist.since since
|
||||
|
@@ -367,6 +367,9 @@ int CChannelList::doChannelMenu(void)
|
||||
bool reset_enabled = chanlist[selected]->flags & CZapitChannel::NEW;
|
||||
menu->addItem(new CMenuForwarder(LOCALE_CHANNELLIST_RESET_FLAGS, reset_enabled, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
|
||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||
bool reset_all = (name == g_Locale->getText(LOCALE_BOUQUETNAME_NEW));
|
||||
menu->addItem(new CMenuForwarder(LOCALE_CHANNELLIST_RESET_ALL, reset_all, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
|
||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||
menu->addItem(new CMenuSeparator(CMenuSeparator::LINE));
|
||||
menu->addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, selector, cnt, CRCInput::convertDigitToKey(shortcut++)), old_selected == i++);
|
||||
menu->exec(NULL, "");
|
||||
@@ -478,7 +481,14 @@ int CChannelList::doChannelMenu(void)
|
||||
if(g_settings.make_new_list)
|
||||
return 2;
|
||||
break;
|
||||
case 5: // settings
|
||||
case 5: // reset all new
|
||||
for (unsigned int j = 0 ; j < chanlist.size(); j++) {
|
||||
chanlist[j]->flags &= ~CZapitChannel::NEW;
|
||||
}
|
||||
if (g_settings.make_new_list)
|
||||
return 2;
|
||||
break;
|
||||
case 6: // settings
|
||||
{
|
||||
previous_channellist_additional = g_settings.channellist_additional;
|
||||
COsdSetup osd_setup;
|
||||
|
@@ -260,6 +260,7 @@ typedef enum
|
||||
LOCALE_CHANNELLIST_NUMERIC_ADJUST,
|
||||
LOCALE_CHANNELLIST_PROVS,
|
||||
LOCALE_CHANNELLIST_RECORDING_NOT_POSSIBLE,
|
||||
LOCALE_CHANNELLIST_RESET_ALL,
|
||||
LOCALE_CHANNELLIST_RESET_FLAGS,
|
||||
LOCALE_CHANNELLIST_SATS,
|
||||
LOCALE_CHANNELLIST_SINCE,
|
||||
|
@@ -260,6 +260,7 @@ const char * locale_real_names[] =
|
||||
"channellist.numeric_adjust",
|
||||
"channellist.provs",
|
||||
"channellist.recording_not_possible",
|
||||
"channellist.reset_all",
|
||||
"channellist.reset_flags",
|
||||
"channellist.sats",
|
||||
"channellist.since",
|
||||
|
Reference in New Issue
Block a user