mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino.cpp: remove not reached keys handle, do not pass RC_timeout
This commit is contained in:
@@ -2284,12 +2284,6 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
else
|
else
|
||||||
ShowHint(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT),450, 10);
|
ShowHint(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT),450, 10);
|
||||||
}
|
}
|
||||||
else if ((msg == CRCInput::RC_audio) && !g_settings.audio_run_player)
|
|
||||||
{
|
|
||||||
StopSubtitles();
|
|
||||||
usermenu.showUserMenu(SNeutrinoSettings::BUTTON_GREEN);
|
|
||||||
StartSubtitles();
|
|
||||||
}
|
|
||||||
else if( msg == CRCInput::RC_green)
|
else if( msg == CRCInput::RC_green)
|
||||||
{
|
{
|
||||||
if (g_settings.personalize[SNeutrinoSettings::P_MAIN_GREEN_BUTTON] == CPersonalizeGui::PERSONALIZE_ACTIVE_MODE_ENABLED)
|
if (g_settings.personalize[SNeutrinoSettings::P_MAIN_GREEN_BUTTON] == CPersonalizeGui::PERSONALIZE_ACTIVE_MODE_ENABLED)
|
||||||
@@ -2311,17 +2305,6 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
else
|
else
|
||||||
ShowHint(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT),450, 10);
|
ShowHint(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT),450, 10);
|
||||||
}
|
}
|
||||||
else if( (msg == CRCInput::RC_green) || ((msg == CRCInput::RC_audio) && !g_settings.audio_run_player) )
|
|
||||||
{
|
|
||||||
StopSubtitles();
|
|
||||||
usermenu.showUserMenu(SNeutrinoSettings::BUTTON_GREEN);
|
|
||||||
StartSubtitles();
|
|
||||||
}
|
|
||||||
else if( msg == CRCInput::RC_yellow ) { // NVODs
|
|
||||||
StopSubtitles();
|
|
||||||
usermenu.showUserMenu(SNeutrinoSettings::BUTTON_YELLOW);
|
|
||||||
StartSubtitles();
|
|
||||||
}
|
|
||||||
else if( msg == CRCInput::RC_blue ) {
|
else if( msg == CRCInput::RC_blue ) {
|
||||||
if (g_settings.personalize[SNeutrinoSettings::P_MAIN_BLUE_BUTTON] == CPersonalizeGui::PERSONALIZE_ACTIVE_MODE_ENABLED)// Features Menu - Personalization Check
|
if (g_settings.personalize[SNeutrinoSettings::P_MAIN_BLUE_BUTTON] == CPersonalizeGui::PERSONALIZE_ACTIVE_MODE_ENABLED)// Features Menu - Personalization Check
|
||||||
{
|
{
|
||||||
@@ -2332,6 +2315,12 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
else
|
else
|
||||||
ShowHint(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT), 450, 10);
|
ShowHint(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT), 450, 10);
|
||||||
}
|
}
|
||||||
|
else if ((msg == CRCInput::RC_audio) && !g_settings.audio_run_player)
|
||||||
|
{
|
||||||
|
StopSubtitles();
|
||||||
|
usermenu.showUserMenu(SNeutrinoSettings::BUTTON_GREEN);
|
||||||
|
StartSubtitles();
|
||||||
|
}
|
||||||
else if( (msg == CRCInput::RC_audio) && g_settings.audio_run_player) {
|
else if( (msg == CRCInput::RC_audio) && g_settings.audio_run_player) {
|
||||||
//open mediaplayer menu in audio mode, user can select between audioplayer and internetradio
|
//open mediaplayer menu in audio mode, user can select between audioplayer and internetradio
|
||||||
CMediaPlayerMenu * media = CMediaPlayerMenu::getInstance();
|
CMediaPlayerMenu * media = CMediaPlayerMenu::getInstance();
|
||||||
@@ -2369,6 +2358,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
if (msg == CRCInput::RC_home) {
|
if (msg == CRCInput::RC_home) {
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
|
||||||
}
|
}
|
||||||
|
if (msg != CRCInput::RC_timeout)
|
||||||
handleMsg(msg, data);
|
handleMsg(msg, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2381,6 +2371,7 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (msg != CRCInput::RC_timeout)
|
||||||
handleMsg(msg, data);
|
handleMsg(msg, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user