From 132ecfc47b2b21706fff16f08ab30bcb7879af73 Mon Sep 17 00:00:00 2001 From: Erik Biederstadt Date: Mon, 17 May 2021 15:53:54 -0600 Subject: [PATCH] GLTeapot: Adds a help menu to the GLTeapot demo Having a help menu maintains better consistency with the other GUI apps on the system. --- Userland/Demos/GLTeapot/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Demos/GLTeapot/main.cpp b/Userland/Demos/GLTeapot/main.cpp index 0e8f6a163d..e81f697431 100644 --- a/Userland/Demos/GLTeapot/main.cpp +++ b/Userland/Demos/GLTeapot/main.cpp @@ -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();