mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 13:55:00 +00:00
GModel: Rename on_model_update(GModel&) => on_update()
Just simplifying the API of this hook a little bit.
This commit is contained in:
parent
f7dce05c82
commit
076827a05d
4 changed files with 5 additions and 5 deletions
|
@ -27,8 +27,8 @@ void GModel::for_each_view(Function<void(GAbstractView&)> callback)
|
|||
|
||||
void GModel::did_update()
|
||||
{
|
||||
if (on_model_update)
|
||||
on_model_update(*this);
|
||||
if (on_update)
|
||||
on_update();
|
||||
for_each_view([](auto& view) {
|
||||
view.did_update_model();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue