Help+LibManual: Without arguments, open index page instead of crashing

This is the old behavior before the recent LibManual refactor. It also
moves the definition of the index page into LibManual for better reuse.
This commit is contained in:
kleines Filmröllchen 2022-12-11 22:32:35 +01:00 committed by Andrew Kaster
commit 5a346c4297
Notes: sideshowbarker 2024-07-17 03:23:09 +09:00
4 changed files with 11 additions and 3 deletions

View file

@ -30,6 +30,8 @@ public:
ErrorOr<String> path() const;
static ErrorOr<NonnullRefPtr<PageNode>> help_index_page();
private:
NonnullRefPtr<SectionNode> m_section;
String m_page;