Browser: Move the "About" action to WindowActions

This commit is contained in:
Andreas Kling 2020-04-24 20:50:06 +02:00
commit 3fcfab4404
Notes: sideshowbarker 2024-07-19 07:19:36 +09:00
4 changed files with 16 additions and 4 deletions

View file

@ -36,6 +36,13 @@ WindowActions::WindowActions(GUI::Window& window)
on_previous_tab();
},
&window);
m_about_action = GUI::Action::create(
"About", [this](const GUI::Action&) {
if (on_about)
on_about();
},
&window);
}
}