mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- infoviewer: try to show correct mode
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -788,8 +788,18 @@ void CInfoViewer::showTitle(CZapitChannel * channel, const bool calledFromNumZap
|
|||||||
|
|
||||||
if (g_settings.infobar_sat_display)
|
if (g_settings.infobar_sat_display)
|
||||||
{
|
{
|
||||||
// TODO split into WebTV/WebRadio
|
std::string name;
|
||||||
std::string name = (IS_WEBCHAN(current_channel_id))? "Web-Channel" : CServiceManager::getInstance()->GetSatelliteName(satellitePosition);
|
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);
|
int satNameWidth = g_SignalFont->getRenderWidth (name);
|
||||||
std::string satname_tmp = name;
|
std::string satname_tmp = name;
|
||||||
if (satNameWidth > numbox_maxtxtwidth)
|
if (satNameWidth > numbox_maxtxtwidth)
|
||||||
|
Reference in New Issue
Block a user