Skip to content

Commit

Permalink
[Added] Make pager compatible with HelpMenuList
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC committed Nov 29, 2023
1 parent 1e5453d commit 6938da4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/python/Components/Addons/Pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ def onContainerShown(self):
if hasattr(self.source, "instance") and hasattr(self.source.instance, "setScrollbarMode"):
self.source.instance.setScrollbarMode(2)

if self.initPager not in self.source.onSelectionChanged:
self.source.onSelectionChanged.append(self.initPager)
if hasattr(self.source, "onSelectionChanged"):
if self.initPager not in self.source.onSelectionChanged:
self.source.onSelectionChanged.append(self.initPager)
elif hasattr(self.source, "onSelChanged"):
if self.initPager not in self.source.onSelChanged:
self.source.onSelChanged.append(self.initPager)

self.initPager()

GUI_WIDGET = eListbox
Expand Down

0 comments on commit 6938da4

Please sign in to comment.