mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
followscreenings: allow switchable notifications
Origin commit data
------------------
Commit: 496e0175d8
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-04-28 (Sun, 28 Apr 2019)
Origin message was:
------------------
- followscreenings: allow switchable notifications
This commit is contained in:
@@ -117,11 +117,9 @@ int CFollowScreenings::exec(CMenuTarget* /*parent*/, const std::string & actionK
|
||||
} else {
|
||||
if (!forwarders.empty() && (followlist.size() > 1 || g_settings.timer_followscreenings == FOLLOWSCREENINGS_ALWAYS)) //NI
|
||||
forwarders[ix]->iconName_Info_right = NEUTRINO_ICON_MARKER_RECORD;
|
||||
/*
|
||||
else if (g_settings.timer_followscreenings != FOLLOWSCREENINGS_ALWAYS) //NI
|
||||
else if (notify && g_settings.timer_followscreenings != FOLLOWSCREENINGS_ALWAYS)
|
||||
ShowMsg(LOCALE_TIMER_EVENTRECORD_TITLE, LOCALE_TIMER_EVENTRECORD_MSG,
|
||||
CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
*/
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
break; // for
|
||||
|
@@ -57,6 +57,8 @@ class CFollowScreenings : public CMenuTarget
|
||||
CTimerd::RecordingInfo eventInfo;
|
||||
std::vector<CMenuForwarder *> forwarders;
|
||||
void updateRightIcon(int i, time_t start, unsigned int duration);
|
||||
bool notify;
|
||||
|
||||
public:
|
||||
enum
|
||||
{
|
||||
@@ -66,7 +68,7 @@ class CFollowScreenings : public CMenuTarget
|
||||
};
|
||||
|
||||
CFollowScreenings(const t_channel_id Channel_id, time_t Starttime, time_t Stoptime, const std::string &Title, uint64_t EpgID=0,
|
||||
unsigned char Apids=TIMERD_APIDS_STD, bool Safety=false, std::string RecDir="", CChannelEventList *Evtlist=NULL) : CMenuTarget () {
|
||||
unsigned char Apids=TIMERD_APIDS_STD, bool Safety=false, std::string RecDir="", CChannelEventList *Evtlist=NULL, bool Notify = false) : CMenuTarget () {
|
||||
this->channel_id = Channel_id;
|
||||
this->starttime = Starttime;
|
||||
this->stoptime = Stoptime;
|
||||
@@ -76,6 +78,7 @@ class CFollowScreenings : public CMenuTarget
|
||||
this->title = Title;
|
||||
this->safety = Safety;
|
||||
this->apids = Apids;
|
||||
this->notify = Notify;
|
||||
};
|
||||
~CFollowScreenings();
|
||||
CChannelEventList *getFollowScreenings(void);
|
||||
|
Reference in New Issue
Block a user