mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird: Do not connect SQL server in layout dump output mode
This commit is contained in:
parent
0c6b942ca9
commit
c05fcd54bb
Notes:
sideshowbarker
2024-07-17 01:00:53 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/c05fcd54bb Pull-request: https://github.com/SerenityOS/serenity/pull/17230 Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 3 deletions
|
@ -56,9 +56,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
TRY(handle_attached_debugger());
|
||||
|
||||
auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client("./SQLServer/SQLServer"sv));
|
||||
auto database = TRY(Browser::Database::create(move(sql_client)));
|
||||
|
||||
QApplication app(arguments.argc, arguments.argv);
|
||||
|
||||
platform_init();
|
||||
|
@ -96,6 +93,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return app.exec();
|
||||
}
|
||||
|
||||
auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client("./SQLServer/SQLServer"sv));
|
||||
auto database = TRY(Browser::Database::create(move(sql_client)));
|
||||
|
||||
auto cookie_jar = TRY(Browser::CookieJar::create(*database));
|
||||
|
||||
BrowserWindow window(cookie_jar, webdriver_content_ipc_path);
|
||||
|
|
Loading…
Reference in a new issue