Skip to content

Commit

Permalink
Add support for offscreen in listitems
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Dec 8, 2020
1 parent 4cddd03 commit b19ed31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.2">
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.3">
<requires>
<import addon="xbmc.python" version="3.0.0" />
</requires>
Expand All @@ -9,7 +9,7 @@
<license>GPL-3.0</license>
<summary lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</summary>
<description lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</description>
<news>Move xbmc.translatepath to xbmcvfs.translatepath</news>
<news>Add support for offscreen in Listitems</news>
<assets>
<icon>icon.png</icon>
</assets>
Expand Down
3 changes: 2 additions & 1 deletion lib/xbmcswift2/listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ class ListItem(object):
of any set properties that xbmcgui doesn't expose getters for.
'''
def __init__(self, label=None, label2=None, icon=None, thumbnail=None,
path=None, fanart=None):
path=None, fanart=None, offscreen=False):
'''Defaults are an emtpy string since xbmcgui.ListItem will not
accept None.
'''
kwargs = {
'label': label,
'label2': label2,
'path': path,
'offscreen': offscreen
}
#kwargs = dict((key, val) for key, val in locals().items() if val is
#not None and key != 'self')
Expand Down

0 comments on commit b19ed31

Please sign in to comment.