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:
Andreas Kling 2020-03-03 17:02:38 +01:00
parent b1d35248e4
commit a26b63a958
Notes: sideshowbarker 2024-07-19 08:55:10 +09:00
26 changed files with 60 additions and 55 deletions

View file

@ -92,7 +92,7 @@ void Button::click()
set_checked(!is_checked());
}
if (on_click)
on_click(*this);
on_click();
if (m_action)
m_action->activate(this);
}