eventlist: don't show EPGplus button when EPGplus is disabled

Origin commit data
------------------
Branch: ni/coolstream
Commit: 05b46b65ab
Author: vanhofen <vanhofen@gmx.de>
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
This commit is contained in:
vanhofen
2019-03-09 23:31:13 +01:00
parent 48257a7111
commit 549a250d39

View File

@@ -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++;