From eeba08dbd1047ac9c12984aaa9b8e286ed88523d Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 17 Sep 2021 22:14:32 +0200 Subject: [PATCH] - infoviewer: try to show correct mode Signed-off-by: Thilo Graf --- src/gui/infoviewer.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 4039105b8..248272487 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -788,8 +788,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)