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:
Andreas Kling 2023-05-05 15:18:20 +02:00
commit 60312f2c83
Notes: sideshowbarker 2024-07-18 05:01:22 +09:00
7 changed files with 2 additions and 33 deletions

View file

@ -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());
}