From 495f828b507611fafa49997adf7f2bda815cdcb8 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 25 Mar 2016 20:32:35 +0100 Subject: Fixes some display glitches in detailView --- viewGridNavigator.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'viewGridNavigator.cpp') diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp index c6b3382..ec92c5f 100644 --- a/viewGridNavigator.cpp +++ b/viewGridNavigator.cpp @@ -36,6 +36,7 @@ void cViewGridNavigator::SetViewGrid(std::shared_ptr void cViewGridNavigator::ReDraw(cGridElement* element) { + if(m_bHidden) return; if(element) { cMutexLock MutexLock(&cPlexSdOsd::RedrawMutex); if (!element->IsVisible()) { @@ -258,3 +259,19 @@ bool cViewGridNavigator::NavigateRight() m_activeElementIter = next; return true; } + +void cViewGridNavigator::Deactivate(bool hide) +{ + if (m_pRootView) { + m_pRootView->Deactivate(hide); + m_bHidden = hide; + } +} + +void cViewGridNavigator::Activate() +{ + if (m_pRootView) { + m_pRootView->Activate(); + m_bHidden = false; + } +} -- cgit v1.2.3