diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 5836ac7a2..765eb8ed2 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -52,7 +52,7 @@ void SystemView::onShow() void SystemView::onHide() { - if (mPrimary == nullptr || mPrimary->getCursor() > static_cast(mSystemElements.size() - 1)) + if (mPrimary == nullptr || mPrimary->getCursor() + 1 > static_cast(mSystemElements.size())) return; for (auto& video : mSystemElements[mPrimary->getCursor()].videoComponents)