mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
Browser: Use GUI::CommonActions::make_about_action()
Browser had bespoke code for showing the exact same AboutDialog, in a more convoluted way.
This commit is contained in:
parent
900cd78121
commit
c2082b45ee
3 changed files with 1 additions and 15 deletions
|
@ -75,13 +75,7 @@ WindowActions::WindowActions(GUI::Window& window)
|
|||
&window));
|
||||
m_tab_actions.last().set_status_tip("Switch to last tab");
|
||||
|
||||
m_about_action = GUI::Action::create(
|
||||
"&About Browser", GUI::Icon::default_icon("app-browser"sv).bitmap_for_size(16), [this](const GUI::Action&) {
|
||||
if (on_about)
|
||||
on_about();
|
||||
},
|
||||
&window);
|
||||
m_about_action->set_status_tip("Show application about box");
|
||||
m_about_action = GUI::CommonActions::make_about_action("Browser", GUI::Icon::default_icon("app-browser"sv), &window);
|
||||
|
||||
m_show_bookmarks_bar_action = GUI::Action::create_checkable(
|
||||
"&Bookmarks Bar", { Mod_Ctrl, Key_B },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue