Add portable mode with removable media detection and scanning

This commit is contained in:
lashman
2026-02-28 00:16:52 +02:00
parent f2abfba753
commit 2108b0f3d8
8 changed files with 138 additions and 1 deletions

View File

@@ -1800,6 +1800,22 @@ fn build_storage_tab(
.build();
size_group.add(&appimage_row);
if record.is_portable {
let location_label = if let Some(ref mp) = record.mount_point {
format!("Portable ({})", mp)
} else {
"Portable (removable media)".to_string()
};
let location_row = adw::ActionRow::builder()
.title("Location")
.subtitle(&location_label)
.build();
let badge = widgets::status_badge("Portable", "info");
badge.set_valign(gtk::Align::Center);
location_row.add_suffix(&badge);
size_group.add(&location_row);
}
if !fp.paths.is_empty() {
let categories = [
("Configuration", fp.config_size),