mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 13:05:12 +00:00
FileManager: Make sure the status bar callback is hooked up.
This commit is contained in:
parent
19fa70c821
commit
82ca3e58b8
Notes:
sideshowbarker
2024-07-19 14:58:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/82ca3e58b88
2 changed files with 1 additions and 2 deletions
|
@ -173,7 +173,6 @@ GVariant DirectoryModel::data(const GModelIndex& index, Role role) const
|
|||
|
||||
void DirectoryModel::update()
|
||||
{
|
||||
dbgprintf("DirectoryModel::update\n");
|
||||
DIR* dirp = opendir(m_path.characters());
|
||||
if (!dirp) {
|
||||
perror("opendir");
|
||||
|
|
|
@ -16,7 +16,7 @@ DirectoryView::DirectoryView(GWidget* parent)
|
|||
|
||||
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) {
|
||||
set_status_message(String::format("%d item%s (%u byte%s)",
|
||||
model().row_count(),
|
||||
|
|
Loading…
Add table
Reference in a new issue