mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
Revert "- infoviewer_bb: use getMoviePlayerButtonName in mode_audio too;"
This reverts ugly commit a2b28048d6
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_audio) {
|
if (mode == NeutrinoMessages::mode_ts) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_red, active, g_settings.infobar_buttons_usertitle);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_red, active, g_settings.infobar_buttons_usertitle);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
@@ -236,7 +236,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_audio) {
|
if (mode == NeutrinoMessages::mode_ts) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_green, active, g_settings.infobar_buttons_usertitle);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_green, active, g_settings.infobar_buttons_usertitle);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
@@ -251,7 +251,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_audio) {
|
if (mode == NeutrinoMessages::mode_ts) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_yellow, active, g_settings.infobar_buttons_usertitle);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_yellow, active, g_settings.infobar_buttons_usertitle);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
@@ -266,7 +266,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_audio) {
|
if (mode == NeutrinoMessages::mode_ts) {
|
||||||
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_blue, active, g_settings.infobar_buttons_usertitle);
|
text = CKeybindSetup::getMoviePlayerButtonName(CRCInput::RC_blue, active, g_settings.infobar_buttons_usertitle);
|
||||||
if (!text.empty())
|
if (!text.empty())
|
||||||
break;
|
break;
|
||||||
@@ -279,8 +279,8 @@ void CInfoViewerBB::getBBButtonInfo()
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//label audio control button in movieplayer/upnp mode
|
//label audio control button in movieplayer mode
|
||||||
if (mode == NeutrinoMessages::mode_ts || mode == NeutrinoMessages::mode_audio)
|
if (mode == NeutrinoMessages::mode_ts)
|
||||||
{
|
{
|
||||||
if (!CMoviePlayerGui::getInstance().timeshift)
|
if (!CMoviePlayerGui::getInstance().timeshift)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user