mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Browser: Move the "About" action to WindowActions
This commit is contained in:
parent
45a932a600
commit
3fcfab4404
Notes:
sideshowbarker
2024-07-19 07:19:36 +09:00
Author: https://github.com/awesomekling
Commit: 3fcfab4404
4 changed files with 16 additions and 4 deletions
|
@ -29,7 +29,6 @@
|
|||
#include "WindowActions.h"
|
||||
#include "History.h"
|
||||
#include "InspectorWidget.h"
|
||||
#include <LibGUI/AboutDialog.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
|
@ -257,9 +256,7 @@ Tab::Tab()
|
|||
bookmarks_menu.add_action(show_bookmarksbar_action);
|
||||
|
||||
auto& help_menu = m_menubar->add_menu("Help");
|
||||
help_menu.add_action(GUI::Action::create("About", [this](const GUI::Action&) {
|
||||
GUI::AboutDialog::show("Browser", Gfx::Bitmap::load_from_file("/res/icons/32x32/filetype-html.png"), window());
|
||||
}));
|
||||
help_menu.add_action(WindowActions::the().about_action());
|
||||
}
|
||||
|
||||
Tab::~Tab()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue