Skip to content

Commit

Permalink
fix channel list display for some providers
Browse files Browse the repository at this point in the history
  • Loading branch information
DYefremov committed Jan 30, 2023
1 parent 5f9333a commit eecfb21
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions usr/lib/tvdemon/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ def show_groups(self, widget, content_type):
self.navigate_to(Page.CATEGORIES)

if not found_groups:
self.active_group = None
self.on_group_activate()

def on_group_activate(self, box, group_widget):
group = group_widget.data
def on_group_activate(self, box=None, group_widget=None):
group = group_widget.data if group_widget else None
self.active_group = group
if self.content_type == TV_GROUP:
self.show_channels(group.channels) if group else self.show_channels(self.active_provider.channels)
Expand Down Expand Up @@ -614,8 +614,7 @@ def filter_func(child):
def init_channels_list_box(self):
self.latest_search_bar_text = None
self.active_group = None
for child in self.channels_list_box.get_children():
self.channels_list_box.remove(child)
[self.channels_list_box.remove(child) for child in self.channels_list_box.get_children()]
self.channels_list_box.invalidate_filter()
self.visible_search_results = 0

Expand Down

0 comments on commit eecfb21

Please sign in to comment.