Skip to content

Commit 1e46b4c

Browse files
committed
fix: clean not resetting state
1 parent 13eec75 commit 1e46b4c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ impl<'a> FlatpakManager<'a> {
420420
if fs::metadata(&build_dir).is_ok() {
421421
fs::remove_dir_all(&build_dir)?;
422422
println!("{} Cleaned .flatplay directory.", "✔".green());
423+
self.state.reset();
423424
}
424425
Ok(())
425426
}

src/state.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ impl State {
5959
Ok(())
6060
}
6161

62+
/// Resets the state to its initial values.
63+
/// This is specifically only for build progress. Not general state.
6264
pub fn reset(&mut self) {
6365
self.dependencies_updated = false;
6466
self.dependencies_built = false;
6567
self.application_built = false;
66-
self.process_group_id = None;
6768
}
6869
}

0 commit comments

Comments
 (0)