1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00

Ladybird: Add setting for page to open on new tab

This commit is contained in:
Federico Guerinoni 2023-01-21 00:30:05 +01:00 committed by Andrew Kaster
parent 80da16e54a
commit 17e9db4fa1
6 changed files with 26 additions and 9 deletions

View file

@ -9,6 +9,7 @@
#include "Settings.h"
#include "Utilities.h"
#include "WebContentView.h"
#include <AK/OwnPtr.h>
#include <Browser/CookieJar.h>
#include <Browser/Database.h>
#include <LibCore/ArgsParser.h>
@ -21,7 +22,7 @@
#include <LibSQL/SQLClient.h>
#include <QApplication>
Browser::Settings* s_settings;
AK::OwnPtr<Browser::Settings> s_settings;
static ErrorOr<void> handle_attached_debugger()
{
@ -106,8 +107,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto cookie_jar = TRY(Browser::CookieJar::create(*database));
s_settings = adopt_own_if_nonnull(new Browser::Settings());
BrowserWindow window(cookie_jar, webdriver_content_ipc_path);
s_settings = new Browser::Settings(&window);
window.setWindowTitle("Ladybird");
window.resize(800, 600);
window.show();