Skip to content

Commit

Permalink
Merge pull request #3973 from DimitarCC/mainmenu-addon-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
littlesat committed May 10, 2024
2 parents 763db93 + 13cf6c7 commit aca5e87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python/Components/Addons/MainMenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def _calcTextWidth(self, text, font=None, size=None):

def buildEntry(self, *args):
item_text = args[0]
menupng = args[5]
menupng = args[5] if len(args) >= 6 else None
xPos = 17
yPos = 5

res = [None]
if self.iconSize > 0:

if self.iconSize > 0 and menupng:
res.append(MultiContentEntryPixmapAlphaBlend(
pos=(xPos, yPos),
size=(self.iconSize, self.iconSize),
Expand Down

0 comments on commit aca5e87

Please sign in to comment.