1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

Ladybird: Remove save button from settings dialog

Save new tab page value on change when valid and
show red error border when URL is not valid
This commit is contained in:
Bastiaan van der Plaat 2023-08-31 12:51:27 +02:00 committed by Andrew Kaster
parent 9510df6eab
commit 43f81f1d0c
2 changed files with 12 additions and 26 deletions

View file

@ -23,15 +23,10 @@ class SettingsDialog : public QDialog {
public:
explicit SettingsDialog(QMainWindow* window);
void save();
virtual void closeEvent(QCloseEvent*) override;
private:
void setup_search_engines();
QFormLayout* m_layout;
QPushButton* m_ok_button { nullptr };
QMainWindow* m_window { nullptr };
OwnPtr<QLineEdit> m_new_tab_page;
OwnPtr<QCheckBox> m_enable_search;