mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
Ladybird: Add setting for page to open on new tab
This commit is contained in:
parent
80da16e54a
commit
17e9db4fa1
6 changed files with 26 additions and 9 deletions
|
@ -16,9 +16,11 @@ SettingsDialog::SettingsDialog(QMainWindow* window)
|
|||
{
|
||||
m_layout = new QFormLayout(this);
|
||||
m_homepage = new QLineEdit(this);
|
||||
m_new_tab_page = new QLineEdit(this);
|
||||
m_ok_button = new QPushButton("&Save", this);
|
||||
|
||||
m_layout->addRow(new QLabel("HomePage", this), m_homepage);
|
||||
m_layout->addRow(new QLabel("Page on New Tab", this), m_new_tab_page);
|
||||
m_layout->addWidget(m_ok_button);
|
||||
|
||||
m_homepage->setText(s_settings->homepage());
|
||||
|
@ -44,4 +46,5 @@ void SettingsDialog::save()
|
|||
{
|
||||
// FIXME: Validate data.
|
||||
s_settings->set_homepage(m_homepage->text());
|
||||
s_settings->set_new_tab_page(m_new_tab_page->text());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue