GModel: Rename on_model_update(GModel&) => on_update()

Just simplifying the API of this hook a little bit.
This commit is contained in:
Andreas Kling 2019-08-20 19:45:08 +02:00
commit 076827a05d
Notes: sideshowbarker 2024-07-19 12:35:23 +09:00
4 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ DirectoryView::DirectoryView(GWidget* parent)
m_item_view->set_model_column(GDirectoryModel::Column::Name);
m_table_view->model()->on_model_update = [this](auto&) {
m_table_view->model()->on_update = [this] {
set_status_message(String::format("%d item%s (%u byte%s)",
model().row_count(),
model().row_count() != 1 ? "s" : "",