Skip to content
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] Integrate client menu hooks into context menu system #14618

Merged
merged 2 commits into from
Oct 16, 2018

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Oct 15, 2018

Some pictures say more than 1.000 words (hopefully). ;-)

Before:

  • A static context menu item triggering a selection dialog containing the actual items.

screenshot001
screenshot002

After:

  • The items a directly contained in the context menu.

screenshot000

To implement this improvement in usability I had to understand the old code first, which ended up in a complete refactoring. TBH, it was really bad design, leaking the PVR Addon API data types up to the PVR GUI layer. Ugly.

I runtime-tested the changes on macOS, latest Kodi master with latest pvr.demo addon.

@Jalle19 might want to review.

@ksooo ksooo added Type: Improvement non-breaking change which improves existing functionality Component: PVR v18 Leia labels Oct 15, 2018
@ksooo ksooo added this to the Leia 18.0-beta4 milestone Oct 15, 2018
@ksooo ksooo requested a review from Jalle19 October 15, 2018 21:15
@djp952
Copy link
Contributor

djp952 commented Oct 16, 2018

Thank you, I've been wanting to do this myself. Much cleaner and greatly appreciated.

xbmc/addons/PVRClientMenuHooks.cpp Show resolved Hide resolved
@ksooo ksooo merged commit fec4426 into xbmc:master Oct 16, 2018
@ksooo ksooo deleted the pvr-client-munu-hooks branch October 16, 2018 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Improvement non-breaking change which improves existing functionality v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants