Help: Make section books open and close when toggled

Much more satisfying!
This commit is contained in:
thankyouverycool 2020-07-07 07:19:30 -04:00 committed by Andreas Kling
parent cbf3c2caeb
commit d86dbfe9e8
Notes: sideshowbarker 2024-07-19 05:02:42 +09:00
6 changed files with 27 additions and 1 deletions

View file

@ -57,3 +57,10 @@ void ManualSectionNode::reify_if_needed() const
for (auto& page_name : page_names)
m_children.append(make<ManualPageNode>(*this, move(page_name)));
}
void ManualSectionNode::set_open(bool open)
{
if (m_open == open)
return;
m_open = open;
}