mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
Everywhere: Use GUI::CommonActions::make_about_action()
This commit is contained in:
parent
f0a59ab7fb
commit
fedf561f57
36 changed files with 46 additions and 161 deletions
|
@ -30,7 +30,6 @@
|
|||
#include <AK/ScopeGuard.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibGUI/AboutDialog.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Clipboard.h>
|
||||
#include <LibGUI/FilePicker.h>
|
||||
|
@ -244,9 +243,7 @@ int main(int argc, char* argv[])
|
|||
|
||||
app_menu.add_separator();
|
||||
|
||||
help_menu.add_action(GUI::Action::create("About", [&](auto&) {
|
||||
GUI::AboutDialog::show("Spreadsheet", app_icon.bitmap_for_size(32), window);
|
||||
}));
|
||||
help_menu.add_action(GUI::CommonActions::make_about_action("Spreadsheet", app_icon, window));
|
||||
|
||||
app->set_menubar(move(menubar));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue