Skip to content

Commit

Permalink
fix(interactive.imagetool): properly disconnect signals
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Aug 30, 2024
1 parent 2c12f59 commit dce236f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/erlab/interactive/imagetool/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def tool(self, value: ImageTool | None) -> None:
self._tool.slicer_area.unlink()
self._tool.setAttribute(QtCore.Qt.WidgetAttribute.WA_DeleteOnClose)
self._tool.removeEventFilter(self)
self._tool.sigTitleChanged.disconnect(self.update_title)
self._tool.slicer_area.set_data(
xr.DataArray(np.zeros((2, 2)), name=self._tool.slicer_area.data.name)
)
Expand Down

0 comments on commit dce236f

Please sign in to comment.