mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +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
Notes:
sideshowbarker
2024-07-17 08:14:56 +09:00
Author: https://github.com/awesomekling
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