Add system modification tracking for reversible installs
This commit is contained in:
@@ -131,7 +131,7 @@ pub fn show_duplicate_dialog(
|
||||
let mut removed_count = 0;
|
||||
for (record_id, record_path, _record_name, integrated) in records.iter() {
|
||||
if *integrated {
|
||||
// Fetch the full record to properly remove integration
|
||||
integrator::undo_all_modifications(&db_confirm, *record_id).ok();
|
||||
if let Ok(Some(full_record)) = db_confirm.get_appimage_by_id(*record_id) {
|
||||
integrator::remove_integration(&full_record).ok();
|
||||
}
|
||||
@@ -260,6 +260,7 @@ fn build_group_widget(
|
||||
delete_btn.connect_clicked(move |btn| {
|
||||
// Remove integration if any
|
||||
if record_clone.integrated {
|
||||
integrator::undo_all_modifications(&db_ref, record_id).ok();
|
||||
integrator::remove_integration(&record_clone).ok();
|
||||
db_ref.set_integrated(record_id, false, None).ok();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user