mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
- infoviewer_bb: use getMoviePlayerButtonName in mode_audio too;
ugly workaround; why we're in mode_audio when using upnp-browser? do we need a mode_upnp?
This commit is contained in:
@@ -221,7 +221,7 @@ void CInfoViewerBB::getBBButtonInfo()
|
|||||||
icon = NEUTRINO_ICON_BUTTON_RED;
|
icon = NEUTRINO_ICON_BUTTON_RED;
|
||||||
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
||||||
mode = CNeutrinoApp::getInstance()->getMode();
|
mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv) {
|
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv || mode == NeutrinoMessages::mode_audio) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_red, active);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_red, active);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
@@ -238,7 +238,7 @@ void CInfoViewerBB::getBBButtonInfo()
|
|||||||
icon = NEUTRINO_ICON_BUTTON_GREEN;
|
icon = NEUTRINO_ICON_BUTTON_GREEN;
|
||||||
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
||||||
mode = CNeutrinoApp::getInstance()->getMode();
|
mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv) {
|
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv || mode == NeutrinoMessages::mode_audio) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_green, active);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_green, active);
|
||||||
if (text != g_Locale->getText(LOCALE_MPKEY_AUDIO))
|
if (text != g_Locale->getText(LOCALE_MPKEY_AUDIO))
|
||||||
break;
|
break;
|
||||||
@@ -263,7 +263,7 @@ void CInfoViewerBB::getBBButtonInfo()
|
|||||||
icon = NEUTRINO_ICON_BUTTON_YELLOW;
|
icon = NEUTRINO_ICON_BUTTON_YELLOW;
|
||||||
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
||||||
mode = CNeutrinoApp::getInstance()->getMode();
|
mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv) {
|
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv || mode == NeutrinoMessages::mode_audio) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_yellow, active);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_yellow, active);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
@@ -280,7 +280,7 @@ void CInfoViewerBB::getBBButtonInfo()
|
|||||||
icon = NEUTRINO_ICON_BUTTON_BLUE;
|
icon = NEUTRINO_ICON_BUTTON_BLUE;
|
||||||
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
frameBuffer->getIconSize(icon.c_str(), &w, &h);
|
||||||
mode = CNeutrinoApp::getInstance()->getMode();
|
mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv) {
|
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_webtv || mode == NeutrinoMessages::mode_audio) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_blue, active);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_blue, active);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user