Skip to content

Commit

Permalink
Resolve possible GSOD when opening MainMenu.
Browse files Browse the repository at this point in the history
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 1091, in mainMenu
  File "/usr/lib/enigma2/python/StartEnigma.py", line 296, in openWithCallback
    dlg = self.open(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 306, in open
    dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 249, in instantiateDialog
    return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 273, in doInstantiateDialog
    dlg.applySkin()
  File "/usr/lib/enigma2/python/Screens/Screen.py", line 263, in applySkin
  File "/usr/lib/enigma2/python/Screens/Screen.py", line 296, in createGUIScreen
  File "/usr/lib/enigma2/python/Screens/Menu.py", line 251, in layoutFinished
  File "/usr/lib/enigma2/python/Screens/Screen.py", line 239, in screenContentChanged
  File "skin applet", line 21, in <module>
AttributeError: 'MainMenu' object has no attribute 'setFont'
[ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.HelpableActionMap object at 0xaf7acaa8>>,('InfobarMenuActions', 'mainMenu')) failed)

Introduced in commit
e960a13.
I'm not fully shure if this was somehow intended
  • Loading branch information
Littlesat authored and WanWizard committed Oct 24, 2024
1 parent 26f2c70 commit fa8668f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/python/Components/Addons/MainMenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def selectionChanged(self):
if self.instance and hasattr(self, "source"):
self.source.setConnectedGuiElement(self)

def setFont(self, value):
self.font = parseFont(value, ((1, 1), (1, 1)))
self.l.setFont(0, self.font)

def setMinWidth(self, value):
self.minWidth = parseScale(value)

Expand Down

0 comments on commit fa8668f

Please sign in to comment.