summaryrefslogtreecommitdiff
path: root/Ladybird/main.cpp
diff options
context:
space:
mode:
authorFiliph Sandström <filiph.sandstrom@filfatstudios.com>2022-07-14 05:41:13 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-25 07:58:58 -0700
commita8380047257cb19885bf23ead9a0a92075d4cbce (patch)
tree1e995f0fd0df873d5ddcca9a530e19eed14519f0 /Ladybird/main.cpp
parent1b682e4b2c6737d114ae2115db58df75994ddd42 (diff)
downloadserenity-a8380047257cb19885bf23ead9a0a92075d4cbce.zip
Ladybird: Add Settings class
Diffstat (limited to 'Ladybird/main.cpp')
-rw-r--r--Ladybird/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Ladybird/main.cpp b/Ladybird/main.cpp
index c5bb0dea9f..940f77fefe 100644
--- a/Ladybird/main.cpp
+++ b/Ladybird/main.cpp
@@ -5,6 +5,7 @@
*/
#include "BrowserWindow.h"
+#include "Settings.h"
#include "WebView.h"
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
@@ -14,6 +15,7 @@
#include <QWidget>
extern void initialize_web_engine();
+Browser::Settings* s_settings;
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
@@ -25,6 +27,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_positional_argument(url, "URL to open", "url", Core::ArgsParser::Required::No);
args_parser.parse(arguments);
+ s_settings = new Browser::Settings();
+
Core::EventLoop event_loop;
QApplication app(arguments.argc, arguments.argv);