mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibGUI: Remove Button& parameter from Button::on_click hook
There was but a single user of this parameter and it's a bit tedious to write it out every time, so let's get rid of it.
This commit is contained in:
parent
b1d35248e4
commit
a26b63a958
26 changed files with 60 additions and 55 deletions
|
@ -118,7 +118,7 @@ int main(int argc, char** argv)
|
|||
quit_button->set_text("Okay");
|
||||
quit_button->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed);
|
||||
quit_button->set_preferred_size(100, 20);
|
||||
quit_button->on_click = [](GUI::Button&) {
|
||||
quit_button->on_click = [] {
|
||||
GUI::Application::the().quit(0);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue