Added explicit video player stops on SystemView cursor changes.

This commit is contained in:
Leon Styhre 2022-11-03 17:11:43 +01:00
parent 246fd307b6
commit e88e802434

View file

@ -235,6 +235,11 @@ void SystemView::onCursorChanged(const CursorState& state)
}
}
if (mLastCursor >= 0 && mLastCursor <= static_cast<int>(mSystemElements.size())) {
for (auto& video : mSystemElements[mLastCursor].videoComponents)
video->stopVideoPlayer();
}
mLastCursor = cursor;
for (auto& video : mSystemElements[cursor].videoComponents)