Skip to content

Commit

Permalink
BUG #85: fix freeze ultrasound button
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscyyeung committed Nov 9, 2022
1 parent a21291e commit aecbf3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions LumpNav2/LumpNav2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2193,10 +2193,12 @@ def setMarkPointCauteryTipClicked(self):
def setFreezeUltrasoundClicked(self, toggled):
parameterNode = self.getParameterNode()
plusServerNode = parameterNode.GetNodeReference(self.PLUS_SERVER_NODE)
if toggled:
plusServerNode.StopServer()
else:
plusServerNode.StartServer()
plusServerConnectorNode = plusServerNode.GetNodeReference("plusServerConnectorNodeRef")
if plusServerConnectorNode:
if toggled:
plusServerConnectorNode.Stop()
else:
plusServerConnectorNode.Start()

def setPlusServerClicked(self, toggled):
parameterNode = self.getParameterNode()
Expand Down

0 comments on commit aecbf3f

Please sign in to comment.