From 6e4b9acf5046f3ff9fa3b5dc64e420db1a865283 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 23 May 2017 17:58:53 +0200 Subject: [PATCH] moviebrowser: bind display of channelogo to g_settings.channellist_show_channellogo Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/d2da458a94a62fb66ef8e20590d01eaefc1dc37e Author: vanhofen Date: 2017-05-23 (Tue, 23 May 2017) Origin message was: ------------------ - moviebrowser: bind display of channelogo to g_settings.channellist_show_channellogo --- src/gui/moviebrowser/mb.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index b2df460bd..4a012c0d6 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -1393,6 +1393,18 @@ std::string CMovieBrowser::getScreenshotName(std::string movie, bool is_dir) void CMovieBrowser::refreshChannelLogo(void) { + //NI + if (!g_settings.channellist_show_channellogo) + { + if (m_channelLogo) + { + m_channelLogo->hide(); + delete m_channelLogo; + m_channelLogo = NULL; + } + return; + } + TRACE("[mb]->%s:%d\n", __func__, __LINE__); int w_logo_max = m_cBoxFrameTitleRel.iWidth / 4;