mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Andreas Kling](/assets/img/avatar_default.png)
This feature isn't really that useful in practice, so let's remove it. (Other browsers haven't had this action for years either.)
27 lines
483 B
C++
27 lines
483 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()
|
|
{
|
|
m_qsettings = new QSettings("Serenity", "Ladybird", this);
|
|
}
|
|
|
|
QString Settings::new_tab_page()
|
|
{
|
|
return m_qsettings->value("new_tab_page", "about:blank").toString();
|
|
}
|
|
|
|
void Settings::set_new_tab_page(QString const& page)
|
|
{
|
|
m_qsettings->setValue("new_tab_page", page);
|
|
}
|
|
|
|
}
|