diff options
author | ksooo <3226626+ksooo@users.noreply.github.com> | 2024-07-26 17:55:54 +0200 |
---|---|---|
committer | ksooo <3226626+ksooo@users.noreply.github.com> | 2024-07-27 12:28:03 +0200 |
commit | f484c03e28e8212b1e480a1df7ca847a487fa3c2 (patch) | |
tree | 2fa6b92f563baebe078be99d981a6795f9730163 | |
parent | 4ce31a772b4837bc2da85286122066bc1dae8aac (diff) |
[PVR] Group Manager: Do not show hidden channels in list of ungrouped channels, except for the 'All channels' group.
-rw-r--r-- | xbmc/pvr/channels/PVRChannelGroups.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/pvr/channels/PVRChannelGroups.cpp b/xbmc/pvr/channels/PVRChannelGroups.cpp index f692e19110..0ba339ef4a 100644 --- a/xbmc/pvr/channels/PVRChannelGroups.cpp +++ b/xbmc/pvr/channels/PVRChannelGroups.cpp @@ -261,7 +261,8 @@ std::vector<std::shared_ptr<CPVRChannelGroupMember>> CPVRChannelGroups::GetMembe const auto allGroupMembers = GetGroupAll()->GetMembers(); for (const auto& groupMember : allGroupMembers) { - if (!group->IsGroupMember(groupMember)) + if (!group->IsGroupMember(groupMember) && + (group->IsChannelsOwner() || !groupMember->Channel()->IsHidden())) result.emplace_back(groupMember); } } |