summaryrefslogtreecommitdiff
path: root/viewGridNavigator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'viewGridNavigator.cpp')
-rw-r--r--viewGridNavigator.cpp17
1 files changed, 17 insertions, 0 deletions
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<skindesignerapi::cViewGrid>
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;
+ }
+}