Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Aug 23, 2024
1 parent 8a58334 commit e73af76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ndv/viewer/_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def _update_canvas_data(self, data: np.ndarray, index: Indices) -> None:
# HACK:
# this is a temporary "better than nothing" to persist LUT control
# state for a given channel across instances of LutControl widget.
# we need a better model, detatched from the view/widget to manage this.
# we need a better model, detached from the view/widget to manage this.
if imkey in self._lut_ctrl_state:
c._set_state(self._lut_ctrl_state[imkey])
self._lut_drop.addWidget(c)
Expand Down Expand Up @@ -606,7 +606,7 @@ def _clear_images(self) -> None:
# HACK:
# this is a temporary "better than nothing" to persist LUT control
# state for a given channel across instances of LutControl widget.
# we need a better model, detatched from the view/widget to manage this.
# we need a better model, detached from the view/widget to manage this.
self._lut_ctrl_state[k] = c._get_state()
cast("QVBoxLayout", self.layout()).removeWidget(c)
c.deleteLater()
Expand Down

0 comments on commit e73af76

Please sign in to comment.