diff --git a/jdaviz/configs/imviz/plugins/tools.py b/jdaviz/configs/imviz/plugins/tools.py index 10b8eda603..39dfc2af01 100644 --- a/jdaviz/configs/imviz/plugins/tools.py +++ b/jdaviz/configs/imviz/plugins/tools.py @@ -23,9 +23,6 @@ class BlinkOnce(Tool): tool_tip = ('Click on this button to display the next image, ' 'or you can also press the "b" key anytime') - def __init__(self, viewer, **kwargs): - super().__init__(viewer, **kwargs) - def activate(self): self.viewer.blink_once() @@ -62,6 +59,7 @@ def activate(self): if (link.data1 is existing_link.data1 and link.data2 is existing_link.data2): exists = True + break if not exists: self.viewer.session.data_collection.add_link(link)