-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PVR] Fix jumping timeline while switching channel groups in Guide window #12707
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't say I totally understand the logic so it's all up to you
{ | ||
// first block of previously selected tag is always the calculated block rounded up. | ||
// refer to CGUIEPGGridContainerModel::Refresh, where the model is created, for details! | ||
float fBlockIndex = (eventStart - gridStart).GetSecondsTotal() / 60.0f / CGUIEPGGridContainerModel::MINSPERBLOCK; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
// first block of tag before previously selected gap tag is always the calculated block rounded up. | ||
// refer to CGUIEPGGridContainerModel::Refresh, where the model is created, for details! | ||
float fBlockIndex = (eventStart - gridStart).GetSecondsTotal() / 60.0f / CGUIEPGGridContainerModel::MINSPERBLOCK; | ||
newBlockIndex = std::ceil(fBlockIndex); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
a0e18d4
to
3f15b54
Compare
@Jalle19 refactored. much better now, imo. |
jenkins errors are unrelated |
This fixes jumping epg grid timeline while switching channel groups in Guide window. This has been reported for both Krypton and Leia several times. :-/ Finally I was able to reproduce this and thus a fix was possible.
This has been runtime tested on macOS, latest Kodi master (as usual on my end).
@Jalle19 mind taking a look.