Add portable mode with removable media detection and scanning
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user