mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
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:
@@ -827,8 +827,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