Skip to content

Commit

Permalink
Merge pull request #420 from dhomeier/deactivate-roi
Browse files Browse the repository at this point in the history
Set `InteractCheckableTool._roi` to `None` on `deactivate`
  • Loading branch information
astrofrog committed Feb 20, 2024
2 parents 8886a79 + b26dd56 commit 090f214
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions glue_jupyter/bqplot/common/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def activate(self):

def deactivate(self):
self.viewer._mouse_interact.next = None
if hasattr(self, '_roi'):
self._roi = None


class BqplotSelectionTool(InteractCheckableTool):
Expand Down

0 comments on commit 090f214

Please sign in to comment.