From c50b61fc839e80d4a71d04f4bc2a4b29ca024b21 Mon Sep 17 00:00:00 2001 From: lashman Date: Fri, 27 Feb 2026 23:48:21 +0200 Subject: [PATCH] Add per-app storage breakdown to detail view --- src/ui/detail_view.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/detail_view.rs b/src/ui/detail_view.rs index e4501fa..27ed032 100644 --- a/src/ui/detail_view.rs +++ b/src/ui/detail_view.rs @@ -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()