mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
Ladybird: Remove the "home" icon from the toolbar (and the concept)
This feature isn't really that useful in practice, so let's remove it. (Other browsers haven't had this action for years either.)
This commit is contained in:
parent
f0f82c6391
commit
60312f2c83
7 changed files with 2 additions and 33 deletions
|
@ -15,16 +15,12 @@ SettingsDialog::SettingsDialog(QMainWindow* window)
|
|||
: m_window(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());
|
||||
|
||||
QObject::connect(m_ok_button, &QPushButton::released, this, [this] {
|
||||
close();
|
||||
});
|
||||
|
@ -46,6 +42,5 @@ void SettingsDialog::closeEvent(QCloseEvent* event)
|
|||
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