mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-10 03:15:08 +00:00
Pimp out context menu
Add emby user image if exists
This commit is contained in:
parent
89fe64d019
commit
85e776707a
2 changed files with 14 additions and 1 deletions
|
@ -8,7 +8,7 @@ import os
|
|||
import xbmcgui
|
||||
import xbmcaddon
|
||||
|
||||
from utils import language as lang
|
||||
from utils import window, language as lang
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -21,6 +21,7 @@ ACTION_BACK = 92
|
|||
ACTION_SELECT_ITEM = 7
|
||||
ACTION_MOUSE_LEFT_CLICK = 100
|
||||
LIST = 155
|
||||
USER_IMAGE = 150
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -46,6 +47,9 @@ class ContextMenu(xbmcgui.WindowXMLDialog):
|
|||
|
||||
def onInit(self):
|
||||
|
||||
if window('EmbyUserImage'):
|
||||
self.getControl(USER_IMAGE).setImage(window('EmbyUserImage'))
|
||||
|
||||
height = 479 + (len(self._options) * 55)
|
||||
log.info("options: %s", self._options)
|
||||
self.list_ = self.getControl(LIST)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue