Skip to content

No context menu for items in the "recently played" view #21

@AmineI

Description

@AmineI

I believe this is a simple case of a missed copy-paste

"All games" view :

item = xbmcgui.ListItem(name)
item.addContextMenuItems([('Play', 'RunPlugin(plugin://plugin.program.steam.library/run/' + str(appid) + ')'), ('Install', 'RunPlugin(plugin://plugin.program.steam.library/install/' + str(appid) + ')')])
item.setArt({ 'thumb': 'http://cdn.akamai.steamstatic.com/steam/apps/' + str(appid) + '/header.jpg', 'fanart': 'http://cdn.akamai.steamstatic.com/steam/apps/' + str(appid) + '/page_bg_generated_v6b.jpg' })

"Recently played" :
item = xbmcgui.ListItem(name)
item.setArt({ 'thumb': 'http://cdn.akamai.steamstatic.com/steam/apps/' + str(appid) + '/header.jpg', 'fanart': 'http://cdn.akamai.steamstatic.com/steam/apps/' + str(appid) + '/page_bg_generated_v6b.jpg' })

As you see, in the "recently played" route the context items are never added.

Instead of fixing this in a small PR, I'll finish refactoring this code, which would prevent issues like this from happening again, since this code would exist in one function for all routes instead of being copy-pasted 3 times.
Still logging the issue in case refactoring is refused or I forget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions