| 1737 | } |
| 1738 | |
| 1739 | void BookmarkManager::SetIsVisible(kml::MarkGroupId groupId, bool visible) |
| 1740 | { |
| 1741 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 1742 | auto * group = GetGroup(groupId); |
| 1743 | if (group->IsVisible() != visible) |
| 1744 | { |
| 1745 | group->SetIsVisible(visible); |
| 1746 | if (auto const compilationIt = m_compilations.find(groupId); compilationIt != m_compilations.end()) |
| 1747 | { |
| 1748 | auto const parentId = compilationIt->second->GetParentID(); |
| 1749 | auto * parentGroup = GetBmCategory(parentId); |
| 1750 | parentGroup->SetDirty(false /* updateModificationTime */); |
| 1751 | if (visible) // visible == false handled in InferVisibility |
| 1752 | parentGroup->SetIsVisible(true); |
| 1753 | } |
| 1754 | } |
| 1755 | UpdateTrackMarksVisibility(groupId); |
| 1756 | } |
| 1757 | |
| 1758 | bool BookmarkManager::IsVisible(kml::MarkGroupId groupId) const |
| 1759 | { |
no test coverage detected