Eliminate a look sequence report in displaychannel

This commit is contained in:
kamel5 2019-06-21 14:02:15 +02:00
parent 5b03953fd1
commit 9278f18cb9
3 changed files with 7 additions and 6 deletions

View File

@ -205,11 +205,14 @@ void cViewChannel::ClearVariables(void) {
globalTimers.ClearTimers();
}
void cViewChannel::SetChannel(const cChannel *channel, int number) {
void cViewChannel::GetTimers(void) {
if (!timersLoaded) {
timersLoaded = true;
globalTimers.LoadTimers();
}
}
void cViewChannel::SetChannel(const cChannel *channel, int number) {
channelChange = true;
//check if channelgroups have to be cleared
@ -252,10 +255,6 @@ void cViewChannel::SetChannel(const cChannel *channel, int number) {
}
void cViewChannel::SetEvents(const cEvent *present, const cEvent *following) {
if (!timersLoaded) {
timersLoaded = true;
globalTimers.LoadTimers();
}
Clear((int)eVeDisplayChannel::epginfo);
Clear((int)eVeDisplayChannel::progressbar);
Clear((int)eVeDisplayChannel::scrapercontent);

View File

@ -56,6 +56,7 @@ public:
void SetGlobals(cGlobals *globals);
void PreCache(void);
void AddChannelViewList(const char *listName, cViewList *viewList);
void GetTimers(void);
void SetChannel(const cChannel *channel, int number);
void SetEvents(const cEvent *present, const cEvent *following);
void SetMessage(eMessageType type, const char *text);
@ -74,4 +75,4 @@ public:
void Flush(void);
};
#endif //__VIEWDISPLAYCHANNEL_H
#endif //__VIEWDISPLAYCHANNEL_H

View File

@ -95,5 +95,6 @@ void cSDDisplayChannel::SetChannelHint(const cChannel *Channel) {
void cSDDisplayChannel::Flush(void) {
if (!ok)
return;
view->GetTimers();
view->Flush();
}