Qt: Hide size for directories in ISO browser

It was nonsensical since it was reporting the size of the directory
entry, which has no correlation with the size of the files in the
directory.
This commit is contained in:
Stenzek
2026-01-08 20:09:22 +10:00
parent bb8179f617
commit 79f9bbe6af

View File

@@ -331,7 +331,8 @@ void ISOBrowserWindow::populateFiles(const QString& path)
item->setData(0, Qt::UserRole, QString::fromStdString(full_path));
item->setData(0, Qt::UserRole + 1, entry.IsDirectory());
item->setText(1, QString::fromStdString(entry.recoding_time.GetFormattedTime()));
item->setText(2, tr("%1 KB").arg(Common::AlignUpPow2(entry.length_le, 1024) / 1024));
if (!entry.IsDirectory())
item->setText(2, tr("%1 KB").arg(Common::AlignUpPow2(entry.length_le, 1024) / 1024));
m_ui.fileView->addTopLevelItem(item);
};