Add per-app storage breakdown to detail view
This commit is contained in:
@@ -1523,6 +1523,22 @@ fn build_storage_tab(
|
|||||||
size_group.add(&appimage_row);
|
size_group.add(&appimage_row);
|
||||||
|
|
||||||
if !fp.paths.is_empty() {
|
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();
|
let data_total = fp.data_total();
|
||||||
if data_total > 0 {
|
if data_total > 0 {
|
||||||
let total_row = adw::ActionRow::builder()
|
let total_row = adw::ActionRow::builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user