mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Ladybird: Add setting for page to open on new tab
This commit is contained in:
parent
80da16e54a
commit
17e9db4fa1
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/guerinoni
Commit: 17e9db4fa1
Pull-request: https://github.com/SerenityOS/serenity/pull/17116
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
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