mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
gui/channellist.cpp: add menu point to remove 'new' channel flag
Origin commit data
------------------
Branch: ni/coolstream
Commit: 67c9e32bd2
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-04-22 (Sun, 22 Apr 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -323,6 +323,9 @@ int CChannelList::doChannelMenu(void)
|
|||||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||||
menu->addItem(new CMenuForwarder(LOCALE_FAVORITES_MENUEADD, true, NULL, selector, cnt, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE), old_selected == i++);
|
menu->addItem(new CMenuForwarder(LOCALE_FAVORITES_MENUEADD, true, NULL, selector, cnt, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE), old_selected == i++);
|
||||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||||
|
bool reset_enabled = chanlist[selected]->flags & CZapitChannel::NEW;
|
||||||
|
menu->addItem(new CMenuForwarder(LOCALE_CHANNELLIST_RESET_FLAGS, reset_enabled, NULL, selector, cnt, CRCInput::convertDigitToKey(0)), old_selected == i++);
|
||||||
|
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||||
menu->addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, selector, cnt, CRCInput::convertDigitToKey(0)), old_selected == i++);
|
menu->addItem(new CMenuForwarder(LOCALE_MAINMENU_SETTINGS, true, NULL, selector, cnt, CRCInput::convertDigitToKey(0)), old_selected == i++);
|
||||||
menu->exec(NULL, "");
|
menu->exec(NULL, "");
|
||||||
delete menu;
|
delete menu;
|
||||||
@@ -410,7 +413,14 @@ int CChannelList::doChannelMenu(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 4: // settings
|
case 4: // reset new
|
||||||
|
chanlist[selected]->flags &= ~CZapitChannel::NEW;
|
||||||
|
CServiceManager::getInstance()->SetServicesChanged(true);
|
||||||
|
/* if make_new_list == ON, signal to re-init services */
|
||||||
|
if(g_settings.make_new_list)
|
||||||
|
return 1;
|
||||||
|
break;
|
||||||
|
case 5: // settings
|
||||||
{
|
{
|
||||||
COsdSetup osd_setup;
|
COsdSetup osd_setup;
|
||||||
osd_setup.showContextChanlistMenu();
|
osd_setup.showContextChanlistMenu();
|
||||||
|
Reference in New Issue
Block a user