1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 20:22:13 +00:00

Browser: Move the "About" action to WindowActions

This commit is contained in:
Andreas Kling 2020-04-24 20:50:06 +02:00
parent 45a932a600
commit 3fcfab4404
4 changed files with 16 additions and 4 deletions

View file

@ -28,6 +28,7 @@
#include "Tab.h"
#include "WindowActions.h"
#include <LibCore/File.h>
#include <LibGUI/AboutDialog.h>
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/TabWidget.h>
@ -140,6 +141,10 @@ int main(int argc, char** argv)
tab_widget.activate_previous_tab();
};
window_actions.on_about = [&] {
GUI::AboutDialog::show("Browser", Gfx::Bitmap::load_from_file("/res/icons/32x32/filetype-html.png"), window);
};
create_new_tab(default_url, true);
window->show();