1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

FileManager: Make sure the status bar callback is hooked up.

This commit is contained in:
Andreas Kling 2019-03-23 03:56:33 +01:00
parent 19fa70c821
commit 82ca3e58b8
2 changed files with 1 additions and 2 deletions

View file

@ -173,7 +173,6 @@ GVariant DirectoryModel::data(const GModelIndex& index, Role role) const
void DirectoryModel::update() void DirectoryModel::update()
{ {
dbgprintf("DirectoryModel::update\n");
DIR* dirp = opendir(m_path.characters()); DIR* dirp = opendir(m_path.characters());
if (!dirp) { if (!dirp) {
perror("opendir"); perror("opendir");

View file

@ -16,7 +16,7 @@ DirectoryView::DirectoryView(GWidget* parent)
m_item_view->set_model_column(DirectoryModel::Column::Name); m_item_view->set_model_column(DirectoryModel::Column::Name);
m_table_view->on_model_notification = [this] (const GModelNotification& notification) { m_item_view->on_model_notification = [this] (const GModelNotification& notification) {
if (notification.type() == GModelNotification::Type::ModelUpdated) { if (notification.type() == GModelNotification::Type::ModelUpdated) {
set_status_message(String::format("%d item%s (%u byte%s)", set_status_message(String::format("%d item%s (%u byte%s)",
model().row_count(), model().row_count(),