Skip to content

Commit

Permalink
Fix error when provider is None
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Nov 29, 2023
1 parent 47fbd69 commit c4d6b8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/lib/hypnotix/hypnotix.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ def navigate_to(self, page, name=""):
elif page == "channels_page":
self.fullscreen_button.show()
self.playback_bar.hide()
self.headerbar.set_title(provider.name)
if provider is not None:
self.headerbar.set_title(provider.name)
if self.content_type == TV_GROUP:
if self.active_group is None:
self.headerbar.set_subtitle(_("TV Channels"))
Expand Down

0 comments on commit c4d6b8a

Please sign in to comment.