mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibGUI: Remove confusing GModelNotification concept
This was a bad idea and it didn't stick. Instead we should just use the simple "on_foo" hook functions like we do for everything else. :^)
This commit is contained in:
parent
4f3234148a
commit
f7dce05c82
Notes:
sideshowbarker
2024-07-19 12:35:26 +09:00
Author: https://github.com/awesomekling
Commit: f7dce05c82
6 changed files with 8 additions and 51 deletions
|
@ -28,17 +28,10 @@ void GAbstractView::set_model(RefPtr<GModel>&& model)
|
|||
did_update_model();
|
||||
}
|
||||
|
||||
void GAbstractView::model_notification(const GModelNotification& notification)
|
||||
{
|
||||
if (on_model_notification)
|
||||
on_model_notification(notification);
|
||||
}
|
||||
|
||||
void GAbstractView::did_update_model()
|
||||
{
|
||||
if (!model() || model()->selected_index() != m_edit_index)
|
||||
stop_editing();
|
||||
model_notification(GModelNotification(GModelNotification::ModelUpdated));
|
||||
}
|
||||
|
||||
void GAbstractView::did_update_selection()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue