mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
2ff37d7e13
This prevents memory leaks detected by both Valgrind and ASAN/LSAN. Valgrind is still suspicious of the leaked JS::VM from Web::Bindings::main_thread_vm() but there's other issues with leak checking all the GC'd objects. Co-Authored-By: Diego Iastrubni <diegoiast@gmail.com>
26 lines
508 B
C++
26 lines
508 B
C++
/*
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "Settings.h"
|
|
|
|
namespace Browser {
|
|
|
|
Settings::Settings(QObject* parent)
|
|
{
|
|
m_qsettings = new QSettings("Serenity", "Ladybird", parent);
|
|
}
|
|
|
|
QString Settings::homepage()
|
|
{
|
|
return m_qsettings->value("homepage", "https://www.serenityos.org/").toString();
|
|
}
|
|
|
|
void Settings::set_homepage(QString const& homepage)
|
|
{
|
|
m_qsettings->setValue("homepage", homepage);
|
|
}
|
|
|
|
}
|