Skip to content

Commit

Permalink
[Fixed] Exception when event is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored and Huevos committed Jan 29, 2024
1 parent 4615533 commit dcc46a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Components/Addons/Pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def onContainerShown(self):
if hasattr(self.source, "instance") and hasattr(self.source.instance, "setScrollbarMode"):
self.source.instance.setScrollbarMode(eListbox.showNever)

if self.source:
if self.source and hasattr(self.source, "onVisibilityChange"):
self.source.onVisibilityChange.append(self.onSourceVisibleChanged)

onSelectionChanged = x if (x := getattr(self.source, "onSelectionChanged", None)) is not None else getattr(self.source, "onSelChanged", None)
Expand Down

0 comments on commit dcc46a0

Please sign in to comment.