Skip to content

Commit b19ed31

Browse files
committed
Add support for offscreen in listitems
1 parent 4cddd03 commit b19ed31

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

addon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.2">
1+
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.3">
22
<requires>
33
<import addon="xbmc.python" version="3.0.0" />
44
</requires>
@@ -9,7 +9,7 @@
99
<license>GPL-3.0</license>
1010
<summary lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</summary>
1111
<description lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</description>
12-
<news>Move xbmc.translatepath to xbmcvfs.translatepath</news>
12+
<news>Add support for offscreen in Listitems</news>
1313
<assets>
1414
<icon>icon.png</icon>
1515
</assets>

lib/xbmcswift2/listitem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ class ListItem(object):
1717
of any set properties that xbmcgui doesn't expose getters for.
1818
'''
1919
def __init__(self, label=None, label2=None, icon=None, thumbnail=None,
20-
path=None, fanart=None):
20+
path=None, fanart=None, offscreen=False):
2121
'''Defaults are an emtpy string since xbmcgui.ListItem will not
2222
accept None.
2323
'''
2424
kwargs = {
2525
'label': label,
2626
'label2': label2,
2727
'path': path,
28+
'offscreen': offscreen
2829
}
2930
#kwargs = dict((key, val) for key, val in locals().items() if val is
3031
#not None and key != 'self')

0 commit comments

Comments
 (0)