mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
Ladybird: Add setting for page to open on new tab
This commit is contained in:
parent
80da16e54a
commit
17e9db4fa1
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/guerinoni
Commit: 17e9db4fa1
Pull-request: https://github.com/SerenityOS/serenity/pull/17116
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
6 changed files with 26 additions and 9 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue