Calendar: Add help menuitem

This commit is contained in:
Abu Sakib 2020-08-18 21:08:54 +06:00 committed by Andreas Kling
parent 4f06cda8f8
commit 8abf5048b8
Notes: sideshowbarker 2024-07-19 03:26:21 +09:00

View file

@ -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();