From 549a250d39667f1dba088e53a56ee038a0d83fd6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 9 Mar 2019 23:31:13 +0100 Subject: [PATCH] eventlist: don't show EPGplus button when EPGplus is disabled Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/05b46b65abca6adc0273ea8d96f39d95091dcfe7 Author: vanhofen Date: 2019-03-09 (Sat, 09 Mar 2019) Origin message was: ------------------ - eventlist: don't show EPGplus button when EPGplus is disabled ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/eventlist.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 766011362..1e0858e69 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -1052,12 +1052,15 @@ void CEventList::paintFoot(t_channel_id channel_id) btn_cnt++; } - //NI epg button for epg-plus - buttons[btn_cnt].button = NEUTRINO_ICON_BUTTON_EPG_SMALL; - buttons[btn_cnt].locale = LOCALE_EPGPLUS_HEAD; - btn_cnt++; + // epg button for epg-plus + if (g_settings.eventlist_epgplus) + { + buttons[btn_cnt].button = NEUTRINO_ICON_BUTTON_EPG_SMALL; + buttons[btn_cnt].locale = LOCALE_EPGPLUS_HEAD; + btn_cnt++; + } - //NI timerlist button + // timerlist button buttons[btn_cnt].button = g_info.hw_caps->has_button_timer ? NEUTRINO_ICON_BUTTON_TIMER : NEUTRINO_ICON_BUTTON_0; buttons[btn_cnt].locale = LOCALE_TIMERLIST_NAME; btn_cnt++;