From bdfcf6535add36ca21598e53c321507d93167c76 Mon Sep 17 00:00:00 2001 From: Shuvam Date: Sun, 5 Jan 2025 01:23:46 +0530 Subject: [PATCH] Update coil_visualizer.py --- invesalius/data/visualization/coil_visualizer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invesalius/data/visualization/coil_visualizer.py b/invesalius/data/visualization/coil_visualizer.py index d227c27b5..75505a081 100644 --- a/invesalius/data/visualization/coil_visualizer.py +++ b/invesalius/data/visualization/coil_visualizer.py @@ -124,7 +124,7 @@ def ShowCoil(self, state, coil_name=None): for coil in self.coils.values(): coil["actor"].SetVisibility(state) coil["center_actor"].SetVisibility(True) # Always show the center donut actor - + # Update the button state after toggling all coils coils_visible = [coil["actor"].GetVisibility() for coil in self.coils.values()] if not any(coils_visible): # all coils are hidden @@ -144,7 +144,6 @@ def ShowCoil(self, state, coil_name=None): if not self.is_navigating: Publisher.sendMessage("Render volume viewer") - def AddTargetCoil(self, m_target): self.RemoveTargetCoil()