Add per-app storage breakdown to detail view

This commit is contained in:
lashman
2026-02-27 23:48:21 +02:00
parent 0777ae1a26
commit c50b61fc83

View File

@@ -1523,6 +1523,22 @@ fn build_storage_tab(
size_group.add(&appimage_row);
if !fp.paths.is_empty() {
let categories = [
("Configuration", fp.config_size),
("Application data", fp.data_size),
("Cache", fp.cache_size),
("State", fp.state_size),
("Other", fp.other_size),
];
for (label, size) in &categories {
if *size > 0 {
let row = adw::ActionRow::builder()
.title(*label)
.subtitle(&widgets::format_size(*size as i64))
.build();
size_group.add(&row);
}
}
let data_total = fp.data_total();
if data_total > 0 {
let total_row = adw::ActionRow::builder()