From 9278f18cb95c1fe417668d9ae790398698d3c907 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Fri, 21 Jun 2019 14:02:15 +0200 Subject: Eliminate a look sequence report in displaychannel --- coreengine/viewdisplaychannel.c | 9 ++++----- coreengine/viewdisplaychannel.h | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'coreengine') 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 -- cgit v1.2.3