mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Calendar: Add help menuitem
This commit is contained in:
parent
4f06cda8f8
commit
8abf5048b8
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ int main(int argc, char** argv)
|
|||
return;
|
||||
}));
|
||||
|
||||
auto& help_menu = menubar->add_menu("Help");
|
||||
help_menu.add_action(GUI::Action::create("About", [&](auto&) {
|
||||
GUI::AboutDialog::show("Calendar", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-calendar.png"), window);
|
||||
}));
|
||||
|
||||
app->set_menubar(move(menubar));
|
||||
|
||||
app->exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue