mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- followscreenings: allow to turn off followscreenings list
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user