mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user