diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-06-21 14:02:15 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-06-21 14:02:15 +0200 |
commit | 9278f18cb95c1fe417668d9ae790398698d3c907 (patch) | |
tree | 493f3f1e9284560f5983c412ed69614202688b82 | |
parent | 5b03953fd15cce03138c91a4398d30f58645cc93 (diff) | |
download | vdr-plugin-skindesigner-9278f18cb95c1fe417668d9ae790398698d3c907.tar.gz vdr-plugin-skindesigner-9278f18cb95c1fe417668d9ae790398698d3c907.tar.bz2 |
Eliminate a look sequence report in displaychannel
-rw-r--r-- | coreengine/viewdisplaychannel.c | 9 | ||||
-rw-r--r-- | coreengine/viewdisplaychannel.h | 3 | ||||
-rw-r--r-- | displaychannel.c | 1 |
3 files changed, 7 insertions, 6 deletions
diff --git a/coreengine/viewdisplaychannel.c b/coreengine/viewdisplaychannel.c index 89b6934..ff30804 100644 --- a/coreengine/viewdisplaychannel.c +++ b/coreengine/viewdisplaychannel.c @@ -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); diff --git a/coreengine/viewdisplaychannel.h b/coreengine/viewdisplaychannel.h index 16c5393..f26e8ac 100644 --- a/coreengine/viewdisplaychannel.h +++ b/coreengine/viewdisplaychannel.h @@ -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
\ No newline at end of file +#endif //__VIEWDISPLAYCHANNEL_H diff --git a/displaychannel.c b/displaychannel.c index 88e6078..d770006 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -95,5 +95,6 @@ void cSDDisplayChannel::SetChannelHint(const cChannel *Channel) { void cSDDisplayChannel::Flush(void) { if (!ok) return; + view->GetTimers(); view->Flush(); } |