mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Ladybird: Add Settings class
This commit is contained in:
parent
1b682e4b2c
commit
a838004725
5 changed files with 61 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue