fix: update_redraw on delete container change
This commit is contained in:
@@ -350,6 +350,7 @@ impl DockerData {
|
||||
GuiState::start_loading_animation(&gui_state, uuid);
|
||||
if match control {
|
||||
DockerCommand::Delete => {
|
||||
gui_state.lock().set_delete_container(None);
|
||||
docker
|
||||
.remove_container(
|
||||
id.get(),
|
||||
|
||||
+2
-1
@@ -297,9 +297,10 @@ impl GuiState {
|
||||
self.status.insert(Status::DeleteConfirm);
|
||||
} else {
|
||||
self.intersect_delete.clear();
|
||||
self.status.remove(&Status::DeleteConfirm);
|
||||
self.status_del(Status::DeleteConfirm);
|
||||
}
|
||||
self.delete_container = id;
|
||||
self.redraw.set_true();
|
||||
}
|
||||
|
||||
/// Return a copy of the Status HashSet
|
||||
|
||||
Reference in New Issue
Block a user