infoviewer: try to show correct mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 75ecd9c792
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-17 (Fri, 17 Sep 2021)

Origin message was:
------------------
- infoviewer: try to show correct mode

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-09-17 22:14:32 +02:00
parent 0317094e83
commit e2f0cbf84f

View File

@@ -827,8 +827,18 @@ void CInfoViewer::showTitle(CZapitChannel * channel, const bool calledFromNumZap
if (g_settings.infobar_sat_display)
{
// TODO split into WebTV/WebRadio
std::string name = (IS_WEBCHAN(current_channel_id))? "Web-Channel" : CServiceManager::getInstance()->GetSatelliteName(satellitePosition);
std::string name;
if (IS_WEBCHAN(current_channel_id))
{
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv)
name = g_Locale->getText(LOCALE_WEBTV_HEAD);
else if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)
name = g_Locale->getText(LOCALE_WEBRADIO_HEAD);
else // NeutrinoMode not set yet
name = "WebChannel";
}
else
name = CServiceManager::getInstance()->GetSatelliteName(satellitePosition);
int satNameWidth = g_SignalFont->getRenderWidth (name);
std::string satname_tmp = name;
if (satNameWidth > numbox_maxtxtwidth)