show event logos only in infoviewer

This commit is contained in:
TangoCash
2018-12-25 01:12:16 +01:00
committed by Thilo Graf
parent 1d0d8ade9c
commit 93f74ef829
5 changed files with 15 additions and 7 deletions

View File

@@ -407,6 +407,7 @@ void CComponentsChannelLogo::init(const uint64_t& channelId, const std::string&
alt_pic_name = "";
setChannel(channelId, channelName);
do_scale = allow_scale;
enable_event_logo = false;
}
void CComponentsChannelLogo::setAltLogo(const std::string& picture_name)
{
@@ -444,7 +445,7 @@ void CComponentsChannelLogo::setChannel(const uint64_t& channelId, const std::st
int dummy;
has_logo = g_PicViewer->GetLogoName(channel_id, channel_name, image, &dummy, &dummy);
has_logo = g_PicViewer->GetLogoName(channel_id, channel_name, image, &dummy, &dummy, false, enable_event_logo);
if (!has_logo)//no logo was found, use altrenate icon or logo
image = alt_pic_name;