mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
gui/cam_menu.cpp: add option to ignore CI/card messages
Origin commit data
------------------
Branch: ni/coolstream
Commit: ae1ae59b68
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-04-16 (Tue, 16 Apr 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -110,6 +110,7 @@ int CCAMMenuHandler::doMainMenu()
|
||||
if(true /* CiSlots */) {
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_RESET_STANDBY, &g_settings.ci_standby_reset, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( new CMenuOptionNumberChooser(LOCALE_CI_CLOCK, &g_settings.ci_clock, true, 6, 12, this));
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CI_IGNORE_MSG, &g_settings.ci_ignore_messages, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( GenericMenuSeparatorLine );
|
||||
}
|
||||
|
||||
@@ -223,6 +224,9 @@ int CCAMMenuHandler::handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t
|
||||
if (msg != NeutrinoMessages::EVT_CA_MESSAGE)
|
||||
return from_menu ? 1 : -1;
|
||||
|
||||
if (g_settings.ci_ignore_messages && !from_menu)
|
||||
return 1;
|
||||
|
||||
rMsg = (CA_MESSAGE *)data;
|
||||
if (!rMsg)
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user