mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
Help: Make section books open and close when toggled
Much more satisfying!
This commit is contained in:
parent
cbf3c2caeb
commit
d86dbfe9e8
Notes:
sideshowbarker
2024-07-19 05:02:42 +09:00
Author: https://github.com/thankyouverycool
Commit: d86dbfe9e8
Pull-request: https://github.com/SerenityOS/serenity/pull/2726
6 changed files with 27 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue