mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibGUI: Initially disable the "Apply" button in SettingsWindow
We'll enable it if/when the user modifies something.
This commit is contained in:
parent
22f8ead2f4
commit
54ca9b50de
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ ErrorOr<NonnullRefPtr<SettingsWindow>> SettingsWindow::create(String title, Show
|
|||
};
|
||||
|
||||
window->m_apply_button = TRY(button_container->try_add<GUI::DialogButton>("Apply"));
|
||||
window->m_apply_button->set_enabled(false);
|
||||
window->m_apply_button->on_click = [window = window->make_weak_ptr<SettingsWindow>()](auto) mutable {
|
||||
window->apply_settings();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue