mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
GLTeapot: Adds a help menu to the GLTeapot demo
Having a help menu maintains better consistency with the other GUI apps on the system.
This commit is contained in:
parent
d9dc42fab5
commit
132ecfc47b
Notes:
sideshowbarker
2024-07-18 17:47:00 +09:00
Author: https://github.com/ebiederstadt
Commit: 132ecfc47b
Pull-request: https://github.com/SerenityOS/serenity/pull/7229
Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ int main(int argc, char** argv)
|
|||
app->quit();
|
||||
}));
|
||||
|
||||
auto& help_menu = menubar->add_menu("&Help");
|
||||
help_menu.add_action(GUI::CommonActions::make_about_action("GLTeapot", app_icon, window));
|
||||
|
||||
window->set_menubar(move(menubar));
|
||||
window->show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue