Ladybird: Do not connect SQL server in layout dump output mode

This commit is contained in:
Aliaksandr Kalenik 2023-01-29 07:20:20 +03:00 committed by Linus Groh
parent 0c6b942ca9
commit c05fcd54bb
Notes: sideshowbarker 2024-07-17 01:00:53 +09:00

View file

@ -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);