mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 03:55:07 +00:00
Help: Add a simple index page
Let's show something a bit more welcoming than empty white when the user launches the Help application. :^)
This commit is contained in:
parent
042890d319
commit
d51bbe1e20
2 changed files with 19 additions and 0 deletions
|
@ -287,6 +287,10 @@ int main(int argc, char* argv[])
|
|||
auto& search_model = *static_cast<GUI::FilteringProxyModel*>(model);
|
||||
search_model.set_filter_term(search_box.text());
|
||||
}
|
||||
} else {
|
||||
String path = "/usr/share/man/man7/Help-index.md";
|
||||
history.push(path);
|
||||
open_page(path);
|
||||
}
|
||||
|
||||
window->set_focused_widget(&left_tab_bar);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue