- followscreenings: allow to turn off followscreenings list

This commit is contained in:
svenhoefer
2016-11-14 22:58:43 +01:00
parent 99c57d3075
commit d6cb1d206f
8 changed files with 23 additions and 4 deletions

View File

@@ -66,6 +66,9 @@ CChannelEventList *CFollowScreenings::getFollowScreenings(void)
if (e->description != title)
continue;
followlist.push_back(*e);
if (followlist.size() == 1 && !g_settings.timer_followscreenings)
break;
}
}
return &followlist;
@@ -87,7 +90,7 @@ int CFollowScreenings::exec(CMenuTarget* /*parent*/, const std::string & actionK
if (i->eventType == CTimerd::TIMER_RECORD) {
if (channel_id == i->channel_id && e->startTime == i->epg_starttime) {
Timer.removeTimerEvent(i->eventID);
if (!forwarders.empty())
if (!forwarders.empty() && followlist.size() > 1)
forwarders[ix]->iconName_Info_right = "";
#if 0
else
@@ -106,13 +109,11 @@ int CFollowScreenings::exec(CMenuTarget* /*parent*/, const std::string & actionK
e->startTime, e->startTime - (ANNOUNCETIME + 120 ), apids, true, e->startTime - (ANNOUNCETIME + 120) > time(NULL), recDir, true) == -1) {
//FIXME -- no error handling, but this shouldn't happen ...
} else {
if (!forwarders.empty())
if (!forwarders.empty() && followlist.size() > 1)
forwarders[ix]->iconName_Info_right = NEUTRINO_ICON_REC;
#if 0
else
ShowMsg(LOCALE_TIMER_EVENTRECORD_TITLE, LOCALE_TIMER_EVENTRECORD_MSG,
CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
#endif
return menu_return::RETURN_REPAINT;
}
break; // for