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);
|
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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user