mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
neutrino.cpp: fix handling of g_settings.mode_left_right_key_tv
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8b18346c98
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-03-01 (Fri, 01 Mar 2013)
Origin message was:
------------------
- neutrino.cpp: fix handling of g_settings.mode_left_right_key_tv
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2072,25 +2072,39 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
||||
g_InfoViewer->showSubchan();
|
||||
}
|
||||
else if ( msg == CRCInput::RC_left || msg == CRCInput::RC_right) {
|
||||
if (g_settings.mode_left_right_key_tv == SNeutrinoSettings::VOLUME) {
|
||||
g_volume->setVolume(msg, true);
|
||||
}
|
||||
else if((g_settings.mode_left_right_key_tv == SNeutrinoSettings::VZAP)
|
||||
|| (g_settings.mode_left_right_key_tv == SNeutrinoSettings::INFOBAR)) {
|
||||
if(channelList->getSize()) {
|
||||
showInfo();
|
||||
}
|
||||
}
|
||||
switch (g_settings.mode_left_right_key_tv)
|
||||
{
|
||||
case SNeutrinoSettings::INFOBAR:
|
||||
case SNeutrinoSettings::VZAP:
|
||||
if (channelList->getSize())
|
||||
showInfo();
|
||||
break;
|
||||
case SNeutrinoSettings::VOLUME:
|
||||
g_volume->setVolume(msg, true);
|
||||
break;
|
||||
default: /* SNeutrinoSettings::ZAP */
|
||||
quickZap(msg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
quickZap( msg );
|
||||
}
|
||||
/* in case key_subchannel_up/down redefined */
|
||||
else if( msg == CRCInput::RC_left || msg == CRCInput::RC_right) {
|
||||
if(g_settings.mode_left_right_key_tv == SNeutrinoSettings::VOLUME) {
|
||||
g_volume->setVolume(msg, true);
|
||||
} else if(channelList->getSize()) {
|
||||
showInfo();
|
||||
switch (g_settings.mode_left_right_key_tv)
|
||||
{
|
||||
case SNeutrinoSettings::INFOBAR:
|
||||
case SNeutrinoSettings::VZAP:
|
||||
if (channelList->getSize())
|
||||
showInfo();
|
||||
break;
|
||||
case SNeutrinoSettings::VOLUME:
|
||||
g_volume->setVolume(msg, true);
|
||||
break;
|
||||
default: /* SNeutrinoSettings::ZAP */
|
||||
quickZap(msg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if( msg == (neutrino_msg_t) g_settings.key_zaphistory ) {
|
||||
|
Reference in New Issue
Block a user