mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
Calendar: Add help menuitem
This commit is contained in:
parent
4f06cda8f8
commit
8abf5048b8
Notes:
sideshowbarker
2024-07-19 03:26:21 +09:00
Author: https://github.com/selectiveduplicate Commit: https://github.com/SerenityOS/serenity/commit/8abf5048b82 Pull-request: https://github.com/SerenityOS/serenity/pull/3205
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
Reference in a new issue