fix: update_redraw on delete container change

This commit is contained in:
Jack Wills
2025-02-23 14:24:04 +00:00
parent bb4eec2b5e
commit a1f31c6c88
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -350,6 +350,7 @@ impl DockerData {
GuiState::start_loading_animation(&gui_state, uuid); GuiState::start_loading_animation(&gui_state, uuid);
if match control { if match control {
DockerCommand::Delete => { DockerCommand::Delete => {
gui_state.lock().set_delete_container(None);
docker docker
.remove_container( .remove_container(
id.get(), id.get(),
+2 -1
View File
@@ -297,9 +297,10 @@ impl GuiState {
self.status.insert(Status::DeleteConfirm); self.status.insert(Status::DeleteConfirm);
} else { } else {
self.intersect_delete.clear(); self.intersect_delete.clear();
self.status.remove(&Status::DeleteConfirm); self.status_del(Status::DeleteConfirm);
} }
self.delete_container = id; self.delete_container = id;
self.redraw.set_true();
} }
/// Return a copy of the Status HashSet /// Return a copy of the Status HashSet